From 848905b12abf2df650c43cb821d36a13246baacb Mon Sep 17 00:00:00 2001 From: Roger Zanoni Date: Wed, 19 Feb 2014 15:46:11 -0400 Subject: [PATCH] Avoid undefined references with CONFIG_WPA_TRACE_BFD=y libdl, libiberty, and libzlib are dependencies for libbfd. Signed-off-by: Roger Zanoni --- hostapd/Makefile | 6 +++--- wpa_supplicant/Makefile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hostapd/Makefile b/hostapd/Makefile index d7ff91e14..111e8c309 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -78,9 +78,9 @@ LDFLAGS += -rdynamic CFLAGS += -funwind-tables ifdef CONFIG_WPA_TRACE_BFD 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 496f6fbca..d01b18f8b 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -107,9 +107,9 @@ LDFLAGS += -rdynamic CFLAGS += -funwind-tables ifdef CONFIG_WPA_TRACE_BFD 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