Fix FreeBSD build by not adding -ldl
[wpasupplicant] / hostapd / 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