]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Allow libdl to be linked in after OpenSSL
authorJouni Malinen <j@w1.fi>
Thu, 16 Aug 2012 16:34:38 +0000 (19:34 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 16 Aug 2012 16:34:38 +0000 (19:34 +0300)
OpenSSL-based builds may need libdl in the linker line after the OpenSSL
library. CONFIG_TLS_ADD_DL=y can now be used to force that if needed.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/Makefile

index a73b737e96fa291e790e1f87b19064f1f8a99ce1..71e43b6c84e4a9161d4515c1f31922a9e2ce82e3 100644 (file)
@@ -876,6 +876,10 @@ OBJS += ../src/crypto/fips_prf_openssl.o
 endif
 LIBS += -lcrypto
 LIBS_p += -lcrypto
+ifdef CONFIG_TLS_ADD_DL
+LIBS += -ldl
+LIBS_p += -ldl
+endif
 endif
 
 ifeq ($(CONFIG_TLS), gnutls)