]> git.sven.stormbind.net Git - sven/jattach.git/blob - debian/patches/do-not-override-CFLAGS
fb07492be992757385260c26bd470aa2415920ec
[sven/jattach.git] / debian / patches / do-not-override-CFLAGS
1 Description: do not override CFLAGS
2  By default the Makefile ignores the CFLAGS as
3  exported by dh.
4 Author: Sven Hoexter <hoexter@debian.org>
5
6 Index: jattach/Makefile
7 ===================================================================
8 --- jattach.orig/Makefile
9 +++ jattach/Makefile
10 @@ -16,7 +16,6 @@ else
11      SOURCES=$(RPM_ROOT)/SOURCES
12      SPEC_FILE=jattach.spec
13      CC=gcc
14 -    CFLAGS=-O2
15      JATTACH_EXE=jattach
16    endif
17  endif
18 @@ -27,7 +26,7 @@ build:
19         mkdir -p build
20  
21  build/jattach: src/jattach_posix.c
22 -       $(CC) $(CFLAGS) -DJATTACH_VERSION=\"$(JATTACH_VERSION)\" -o $@ $^
23 +       $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DJATTACH_VERSION=\"$(JATTACH_VERSION)\" -o $@ $^
24  
25  build/jattach.exe: src/jattach_windows.c
26         $(CL) $(CFLAGS) /DJATTACH_VERSION=\"$(JATTACH_VERSION)\" /Fobuild/jattach.obj /Fe$@ $^ advapi32.lib /link /SUBSYSTEM:CONSOLE,5.02