]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add a variable to handle extra CFLAGS values
authorRoger Zanoni <roger.zanoni@openbossa.org>
Tue, 25 Feb 2014 19:06:08 +0000 (15:06 -0400)
committerJouni Malinen <j@w1.fi>
Sat, 31 Jan 2015 22:26:17 +0000 (00:26 +0200)
Some packages don't install its headers in the default directory
(e.g.: In Arch Linux libiberty and libn13 includes are installed)
in their own subdirectory under /usr/include) and the build fails
trying to find the headers.

This patch will allow passing extra CFLAGS values without discarding
the assignments made in the Makefile. The CFLAGS values in the Makefile
are ignored, if defined directly in the make command line.

Signed-off-by: Roger Zanoni <roger.zanoni@openbossa.org>
hostapd/Makefile
wpa_supplicant/Makefile

index f30a35d5449f3a3ad99bb77ed216e12d012db3e1..eace68cd051bad81442697e2c92f7387a073019c 100644 (file)
@@ -6,6 +6,7 @@ ifndef CFLAGS
 CFLAGS = -MMD -O2 -Wall -g
 endif
 
+CFLAGS += $(EXTRA_CFLAGS)
 CFLAGS += -I$(abspath ../src)
 CFLAGS += -I$(abspath ../src/utils)
 
index 35e5d73456705ad1f80b9ebf3214e6861be583c1..95fbe789beac223c49fc122e6bf4412a394f1580 100644 (file)
@@ -10,6 +10,7 @@ export LIBDIR ?= /usr/local/lib/
 export BINDIR ?= /usr/local/sbin/
 PKG_CONFIG ?= pkg-config
 
+CFLAGS += $(EXTRA_CFLAGS)
 CFLAGS += -I$(abspath ../src)
 CFLAGS += -I$(abspath ../src/utils)