From: Jouni Malinen Date: Tue, 28 Jul 2015 08:57:05 +0000 (+0300) Subject: OpenSSL: Add CONFIG_TLS_ADD_DL=y build option for hostapd X-Git-Tag: hostap_2_5~274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ee66b4251866298a370101f272a01b7f62daa1b;p=thirdparty%2Fhostap.git OpenSSL: Add CONFIG_TLS_ADD_DL=y build option for hostapd This behaves similarly to the same option in wpa_supplicant, i.e., adds -ldl when linking in libcrypto from OpenSSL. Signed-off-by: Jouni Malinen --- 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)