Fix FreeBSD build by not adding -ldl
authorJouni Malinen <j@w1.fi>
Sat, 21 Mar 2009 18:59:07 +0000 (20:59 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 21 Mar 2009 18:59:07 +0000 (20:59 +0200)
Unlike Linux, FreeBSD does not use libdl.

hostapd/Makefile
wpa_supplicant/Makefile

index 1c2f479..e94bd0e 100644 (file)
@@ -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
index 3dc144f..2a2d8d3 100644 (file)
@@ -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)