File: honour-cflags

package info (click to toggle)
wireless-tools 30~pre9-13.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 1,640 kB
  • sloc: ansic: 13,804; sh: 209; makefile: 154
file content (16 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (7)
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