aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/Makefile
diff options
context:
space:
mode:
authorRoger Zanoni <roger.zanoni@openbossa.org>2014-02-17 19:02:47 (GMT)
committerJouni Malinen <j@w1.fi>2014-02-19 12:10:12 (GMT)
commitb7cac4125413dedabc3d6c0bae8e3b334e161138 (patch)
treeae5c606728d994800266f78ad9087a8e62a19192 /wpa_supplicant/Makefile
parentb62d5b5450101676a0c05691b4bcd94e11426397 (diff)
downloadhostap-b7cac4125413dedabc3d6c0bae8e3b334e161138.zip
hostap-b7cac4125413dedabc3d6c0bae8e3b334e161138.tar.gz
hostap-b7cac4125413dedabc3d6c0bae8e3b334e161138.tar.bz2
Fix hostapd and wpa_supplicant build with binutils >= 2.24.x
Using binutils >= 2.24.x and setting CONFIG_WPA_TRACE/CONFIG_WPA_TRACE_BDF causes both builds to fail with "#error config.h must be included before this header" message. Since version 2.24.x, the bfd header checks for PACKAGE and PACKAGE_VERSION macros. As suggested in http://sourceware.org/bugzilla/show_bug.cgi?id=14243 projects that use bfd and don't use autotools should define a PACKAGE macro. Signed-off-by: Roger Zanoni <roger.zanoni@openbossa.org>
Diffstat (limited to 'wpa_supplicant/Makefile')
-rw-r--r--wpa_supplicant/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index d1e11a3..496f6fb 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -106,7 +106,7 @@ OBJS_priv += ../src/utils/trace.o
LDFLAGS += -rdynamic
CFLAGS += -funwind-tables
ifdef CONFIG_WPA_TRACE_BFD
-CFLAGS += -DWPA_TRACE_BFD
+CFLAGS += -DPACKAGE="wpa_supplicant" -DWPA_TRACE_BFD
LIBS += -lbfd
LIBS_p += -lbfd
LIBS_c += -lbfd