Explicitly link against libdl when including TNC support
authorDaniel Mierswa <impulze@impulze.org>
Thu, 5 Feb 2009 17:24:16 +0000 (19:24 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 5 Feb 2009 17:24:16 +0000 (19:24 +0200)
If you don't choose OpenSSL as TLS implementation and choose to enable
CONFIG_EAP_TNC you have to link against libdl. The OpenSSL libraries
implicitly link against them, so this might be a reason why it wasn't
noticed yet. I assume the same applies to hostapd.

hostapd/Makefile
wpa_supplicant/Makefile

index 3c6bd4a..e548430 100644 (file)
@@ -335,6 +335,7 @@ CFLAGS += -DEAP_TNC
 OBJS += ../src/eap_server/eap_tnc.o
 OBJS += ../src/eap_server/tncs.o
 NEED_BASE64=y
+LIBS += -ldl
 endif
 
 # Basic EAP functionality is needed for EAPOL
index 73d3aa5..9f7a785 100644 (file)
@@ -566,6 +566,7 @@ OBJS += ../src/eap_peer/tncc.o
 OBJS_h += ../src/eap_server/eap_tnc.o
 OBJS_h += ../src/eap_server/tncs.o
 NEED_BASE64=y
+LIBS += -ldl
 endif
 
 ifdef CONFIG_IEEE8021X_EAPOL