]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Fix configure get0_dane check order of crypto and ssl library link
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Dec 2016 13:22:27 +0000 (14:22 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Dec 2016 13:22:27 +0000 (14:22 +0100)
configure.ac

index 2b182bec1972a60f6ccf6384e63b35ec4edb8e5a..6660e98ac376d599e12feb77f6372ac18903efa4 100644 (file)
@@ -459,7 +459,7 @@ case "$enable_dane" in
                   AC_SUBST(ldns_build_config_use_dane_ta_usage, 0)
                   ;;
                 *) dnl default
-           LIBS="$LIBS -lssl"
+           LIBS="-lssl $LIBS"
                   AC_CHECK_FUNC(SSL_get0_dane, [], [AC_MSG_ERROR([OpenSSL does not support offline DANE verification (Needed for the DANE-TA usage type).  Please upgrade OpenSSL to version >= 1.1.0 or rerun with --disable-dane-verify or --disable-dane-ta-usage])])
                   LIBSSL_LIBS="$LIBSSL_LIBS -lssl"
                   AC_SUBST(ldns_build_config_use_dane_ta_usage, 1)