]> git.draconx.ca Git - gentoo-draconx.git/blob - games-engines/onscripter-en/files/onscripter-en-respect-CXXFLAGS.patch
Add onscripter-en ebuild.
[gentoo-draconx.git] / games-engines / onscripter-en / files / onscripter-en-respect-CXXFLAGS.patch
1 From b4b9bda38cc0d909228445affc0c0122df16d3de Mon Sep 17 00:00:00 2001
2 From: Nick Bowler <nbowler@draconx.ca>
3 Date: Mon, 27 Apr 2015 23:37:59 -0400
4 Subject: [PATCH] Respect CFLAGS.
5
6 ---
7  configure | 12 +-----------
8  1 file changed, 1 insertion(+), 11 deletions(-)
9
10 diff --git a/configure b/configure
11 index 95779ab326a2..0358c0e24adc 100755
12 --- a/configure
13 +++ b/configure
14 @@ -1206,17 +1206,7 @@ cat >> Makefile <<_EOF
15  .SUFFIXES:
16  .SUFFIXES: $OBJ .cpp .h .c
17  
18 -ifdef DEBUG
19 -OSCFLAGS = -O0 -g -pg -ggdb -pipe -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
20 -export LDFLAGS  := -pg \$(LDFLAGS)
21 -else
22 -  ifdef PROF
23 -  OSCFLAGS = -O3 -pg -pipe -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
24 -  export LDFLAGS  := -pg \$(LDFLAGS)
25 -  else
26 -  OSCFLAGS = -O3 -fomit-frame-pointer -pipe -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
27 -  endif
28 -endif
29 +OSCFLAGS = \$(CFLAGS) -Wpointer-arith $WERROR $STRICT \$(OSCFLAGSEXTRA)
30  
31  TARGET ?= onscripter-en
32  
33 -- 
34 2.2.2
35