From 411f56705019ac5b13b4daf62f423fceb3c703e2 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 16 Aug 2012 19:34:38 +0300 Subject: [PATCH] Allow libdl to be linked in after OpenSSL 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 --- wpa_supplicant/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index a73b737e9..71e43b6c8 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -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)