Package: wireless-tools / 30~pre9-13.1

honour-cflags Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: honour CFLAGS provided by the environment
 This allows debian/rules to override the CFLAGS variable.
Author: Guus Sliepen <guus@debian.org>

--- wireless-tools-30~pre9.orig/Makefile
+++ wireless-tools-30~pre9/Makefile
@@ -106,7 +106,8 @@ endif
 # Other flags
 #CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
 	-Wpointer-arith -Wcast-qual -Winline -I.
-CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
+CFLAGS?=-O2 -W -Wall -Wstrict-prototypes -I.
+CFLAGS+=-I.
 DEPFLAGS=-MMD
 XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG)
 PICFLAG=-fPIC