[PATCH 2/2] Avoid undefined references with CONFIG_WPA_TRACE_BFD set
Roger Zanoni
roger.zanoni
Wed Feb 19 11:46:11 PST 2014
libdl, libberty and libzlib are dependencies for libbfd.
Signed-off-by: Roger Zanoni <roger.zanoni at openbossa.org>
---
hostapd/Makefile | 6 +++---
wpa_supplicant/Makefile | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 385f865..251b3c9 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -78,9 +78,9 @@ LDFLAGS += -rdynamic
override CFLAGS += -funwind-tables
ifdef CONFIG_WPA_TRACE_BFD
override CFLAGS += -DPACKAGE="hostapd" -DWPA_TRACE_BFD
-LIBS += -lbfd
-LIBS_c += -lbfd
-LIBS_h += -lbfd
+LIBS += -lbfd -ldl -liberty -lz
+LIBS_c += -lbfd -ldl -liberty -lz
+LIBS_h += -lbfd -ldl -liberty -lz
endif
endif
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 5ddc05f..fd8256d 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -107,9 +107,9 @@ LDFLAGS += -rdynamic
override CFLAGS += -funwind-tables
ifdef CONFIG_WPA_TRACE_BFD
override CFLAGS += -DPACKAGE="wpa_supplicant" -DWPA_TRACE_BFD
-LIBS += -lbfd
-LIBS_p += -lbfd
-LIBS_c += -lbfd
+LIBS += -lbfd -ldl -liberty -lz
+LIBS_p += -lbfd -ldl -liberty -lz
+LIBS_c += -lbfd -ldl -liberty -lz
endif
endif
--
1.9.0
More information about the Hostap
mailing list