Debian Codegraph @

debian/patches/flags

raw
1 Let environment provide default values for CPPFLAGS, CPPFLAGS, and LDFLAGS
2
3 https://sourceforge.net/p/espeak/patches/19/
4
5 ---
6 src/Makefile | 12 ++++++------
7 1 file changed, 6 insertions(+), 6 deletions(-)
8
9 --- a/src/Makefile
10 +++ b/src/Makefile
11 @@ -15,13 +15,13 @@ WX_LIBS = -pthread `wx-config --libs`
12 LIBS=-lstdc++ -lportaudio -lsonic -lm
13 #LIBS=-lstdc++ /usr/lib/x86_64-linux-gnu/libportaudio.so.2
14
15 -CPPFLAGS = -Wall -g -fexceptions `wx-config --cflags` \
16 - -I/usr/include/wx-2.8 \
17 +CPPFLAGS ?=
18 +CPPFLAGS += -I/usr/include/wx-2.8 \
19 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES \
20 -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -D_ESPEAKEDIT
21
22 -CXXFLAGS = -O2 -Wall -fexceptions `wx-config --cflags` \
23 - -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -D_ESPEAKEDIT
24 +CXXFLAGS ?= -O2 -g -Wall
25 +CXXFLAGS += -fexceptions `wx-config --cflags`
26
27 DEB_HOST_MULTIARCH ?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
28 CPPFLAGS += -DNDEBUG
29 @@ -30,10 +30,10 @@ CXXFLAGS += -DDEB_HOST_MULTIARCH='"$(DEB
30 all: espeakedit
31
32 .cpp.o:
33 - $(CXX) $(CXXFLAGS) -I. -c -fno-exceptions $<
34 + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -I. -c -fno-exceptions $<
35
36 espeakedit: $(OBJS)
37 - $(CXX) -o $@ $(OBJS) $(LIBS) $(WX_LIBS)
38 + $(CXX) -o $@ $(OBJS) $(LIBS) $(WX_LIBS) $(LDFLAGS)
39
40 clean:
41 rm -f *.o *~