diff --git a/hostapd/Makefile b/hostapd/Makefile index 82ec159b0..65750342c 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -545,6 +545,10 @@ NEED_SHA256=y NEED_TLS_PRF_SHA256=y LIBS += -lcrypto LIBS_h += -lcrypto +ifdef CONFIG_TLS_ADD_DL +LIBS += -ldl +LIBS_h += -ldl +endif endif ifeq ($(CONFIG_TLS), gnutls)