Commit 06324e7f authored by Ondřej Surý's avatar Ondřej Surý

Use LIBS instead of LDFLAGS to reorder libraries after sources (See...

Use LIBS instead of LDFLAGS to reorder libraries after sources (See https://gist.github.com/darix/2725672008083c9111ff)
parent 6afe8bfd
......@@ -124,18 +124,18 @@ AM_CONDITIONAL([FAST_PARSER], [test "$enable_fastparser" = "yes"])
# GnuTLS crypto backend
PKG_CHECK_MODULES([gnutls], [gnutls >= 3.0 nettle], [
CFLAGS_save=$CFLAGS
save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $gnutls_CFLAGS"
AC_CHECK_HEADERS([nettle/version.h])
CFLAGS=$CFLAGS_save
CFLAGS=$save_CFLAGS
LDFLAGS_save=$LDFLAGS
LDFLAGS="$LDFLAGS $gnutls_LIBS"
save_LIBS=$LIBS
LIBS="$LIBS $gnutls_LIBS"
AC_CHECK_FUNC([gnutls_pkcs11_privkey_generate3], [enable_pkcs11=yes], [enable_pkcs11=no])
AS_IF([test "$enable_pkcs11" = yes],
[AC_DEFINE([ENABLE_PKCS11], [1], [PKCS 11 support available])])
LDFLAGS=$LDFLAGS_save
LIBS=$save_LIBS
])
# JSON for DNSSEC status storage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment