]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Prevent unwanted linkage to -lhogweed
authorAndreas Metzler <ametzler@bebt.de>
Sat, 3 Dec 2016 13:29:51 +0000 (14:29 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 4 Dec 2016 14:44:37 +0000 (15:44 +0100)
Specify action-if-found for AC_CHECK_LIB when checking for !SuiteB
curves to keep autoconf from adding -lhogweed to LIBS. This caused
linkage of e.g. openssl wrapper and C++ library to -lhogweed. The issue
only shows up if --disable-libdane is specified, since the dane autoconf
test resets LIBS.

configure.ac

index 4278d2ba94a45f38ad689cf9001c70b069ccbe11..2e518b909743f604ac1544ac4a8334529219a1c7 100644 (file)
@@ -514,7 +514,7 @@ AC_ARG_ENABLE(non-suiteb-curves,
 
 if test "$enable_non_suiteb" = "yes";then
        dnl nettle_secp_192r1 is not really a function
-       AC_CHECK_LIB(hogweed, nettle_secp_192r1,, enable_non_suiteb=no, [$HOGWEED_LIBS])
+       AC_CHECK_LIB(hogweed, nettle_secp_192r1, enable_non_suiteb=yes, enable_non_suiteb=no, [$HOGWEED_LIBS])
 
        if test "$enable_non_suiteb" = "yes";then
                AC_DEFINE([ENABLE_NON_SUITEB_CURVES], 1, [Enable all curves])