Index: tls/build.sh ================================================================== --- tls/build.sh +++ tls/build.sh @@ -47,10 +47,16 @@ SSLDIR="$(pwd)/libressl-${version}/INST" addlibs_LOCALSSL="$(PKG_CONFIG_PATH="${SSLDIR}/lib/pkgconfig" "${PKG_CONFIG:-pkg-config}" libssl libcrypto --libs --static)" } function preconfigure() { + # Disable SSLv2, newer SSL libraries drop support for it entirely + CFLAGS="${CFLAGS} -DNO_SSL2=1" + + # Disable SSLv3, newer SSL libraries drop support for it entirely + CFLAGS="${CFLAGS} -DNO_SSL3=1" + # Determine SSL directory if [ -z "${CPP}" ]; then CPP="${CC:-cc} -E" fi @@ -72,16 +78,12 @@ return 1 fi fi - # Disable SSLv2, newer SSL libraries drop support for it entirely - CFLAGS="${CFLAGS} -DNO_SSL2=1" - - # Disable SSLv3, newer SSL libraries drop support for it entirely - CFLAGS="${CFLAGS} -DNO_SSL3=1" - + # Add SSL library to configure options + configure_extra=(--with-ssl-dir="${SSLDIR}") } function postconfigure() { local linkaddfile local addlibs