Message ID | 1393355168-9109-1-git-send-email-roger.zanoni@openbossa.org |
---|---|
State | Accepted |
Headers | show |
On Tue, Feb 25, 2014 at 03:06:08PM -0400, Roger Zanoni wrote: > 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. Thanks, applied.
diff --git a/hostapd/Makefile b/hostapd/Makefile index 25c560f..f445a58 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 b9c8a46..3834490 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)
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 | 1 + wpa_supplicant/Makefile | 1 + 2 files changed, 2 insertions(+)