From: Roger Zanoni Date: Tue, 25 Feb 2014 19:06:08 +0000 (-0400) Subject: Add a variable to handle extra CFLAGS values X-Git-Tag: hostap_2_4~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b42f539ed20240d1b6f4d5454c528269bb5460cd;p=thirdparty%2Fhostap.git Add a variable to handle extra CFLAGS values 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 --- diff --git a/hostapd/Makefile b/hostapd/Makefile index f30a35d54..eace68cd0 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -6,6 +6,7 @@ ifndef CFLAGS CFLAGS = -MMD -O2 -Wall -g endif +CFLAGS += $(EXTRA_CFLAGS) CFLAGS += -I$(abspath ../src) CFLAGS += -I$(abspath ../src/utils) diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 35e5d7345..95fbe789b 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -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)