aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2019-10-17 23:19:15 (GMT)
committerJouni Malinen <j@w1.fi>2019-10-25 13:03:37 (GMT)
commita32acf39188bf78fb10e57e47256b8f6d478ff5b (patch)
treec4f0da60716ddaa83e1a3c5e85fb4697e348d326 /hostapd/Makefile
parentb38c8c9cb2b6a1c9577df8d81c1f04961ff5d02a (diff)
downloadhostap-a32acf39188bf78fb10e57e47256b8f6d478ff5b.zip
hostap-a32acf39188bf78fb10e57e47256b8f6d478ff5b.tar.gz
hostap-a32acf39188bf78fb10e57e47256b8f6d478ff5b.tar.bz2
Fix hostapd build with CONFIG_WPA_TRACE but no CONFIG_WPA_TRACE_BFD
Otherwise, we may get linker failures: ld.lld: error: unable to find library -lbfd While we're at it, pull in the library selection fixes from commit 848905b12abf ("Avoid undefined references with CONFIG_WPA_TRACE_BFD=y"). Signed-off-by: Brian Norris <briannorris@chromium.org>
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 42bb9e4..955e278 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -121,6 +121,7 @@ CFLAGS += -DPACKAGE="hostapd" -DWPA_TRACE_BFD
LIBS += -lbfd -ldl -liberty -lz
LIBS_c += -lbfd -ldl -liberty -lz
LIBS_h += -lbfd -ldl -liberty -lz
+LIBS_n += -lbfd -ldl -liberty -lz
endif
endif
@@ -1313,7 +1314,6 @@ NOBJS += ../src/utils/wpa_debug.o
NOBJS += ../src/utils/wpabuf.o
ifdef CONFIG_WPA_TRACE
NOBJS += ../src/utils/trace.o
-LIBS_n += -lbfd
endif
HOBJS += hlr_auc_gw.o ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/os_$(CONFIG_OS).o ../src/utils/wpabuf.o ../src/crypto/milenage.o