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)