From 7d737d6bf92b75d8c0a6e52c04115dd8e730c22b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 21 Mar 2009 20:59:07 +0200 Subject: [PATCH] Fix FreeBSD build by not adding -ldl Unlike Linux, FreeBSD does not use libdl. --- hostapd/Makefile | 2 ++ wpa_supplicant/Makefile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hostapd/Makefile b/hostapd/Makefile index 1c2f4795c..e94bd0e28 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -366,8 +366,10 @@ CFLAGS += -DEAP_TNC OBJS += ../src/eap_server/eap_tnc.o OBJS += ../src/eap_server/tncs.o NEED_BASE64=y +ifndef CONFIG_DRIVER_BSD LIBS += -ldl endif +endif # Basic EAP functionality is needed for EAPOL OBJS += ../src/eap_server/eap.o diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 3dc144fb1..2a2d8d3fe 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -604,9 +604,11 @@ OBJS_h += ../src/eap_server/eap_tnc.o OBJS_h += ../src/eap_server/tncs.o NEED_BASE64=y ifndef CONFIG_NATIVE_WINDOWS +ifndef CONFIG_DRIVER_BSD LIBS += -ldl endif endif +endif ifdef CONFIG_IEEE8021X_EAPOL # IEEE 802.1X/EAPOL state machines (e.g., for RADIUS authentication)