Browse Source

Fix FreeBSD build by not adding -ldl

Unlike Linux, FreeBSD does not use libdl.
Jouni Malinen 16 years ago
parent
commit
7d737d6bf9
2 changed files with 4 additions and 0 deletions
  1. 2 0
      hostapd/Makefile
  2. 2 0
      wpa_supplicant/Makefile

+ 2 - 0
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

+ 2 - 0
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)