linking SSL libraries correctly
Jeff Sparkes <[email protected]> Sun, 09 Nov 2014 17:17:40 +0000
| Newsgroups | gmane.emacs.xemacs.patches |
|---|---|
| Message-ID | <CACbFnSibT47rgUR7Y9YRk9hqbUdq_XrLLuUgJejD48dzS4hOxA@mail.gmail.com> |
The libraries were added to LDFLAGS. I added them to LIBS instead _______________________________________________ XEmacs-Patches mailing list [email protected] http://lists.xemacs.org/mailman/listinfo/xemacs-patches
ssl.patch
(text/x-patch, 1.2 KB)
diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-09 Jeff Sparkes <[email protected]> + + * configure.ac (HAVE_GNUTLS): Add SSL/TLS libraries to $LIBS, not + $LDFLAGS. + 2014-10-10 Marcus Crestani <[email protected]> * configure.ac: Disable ASLR on Yosemite. diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -5371,7 +5371,7 @@ fi gnutls_libs=`pkg-config --libs gnutls` if test "$?" = 0; then - XE_PREPEND("$gnutls_libs", LDFLAGS) + XE_APPEND("$gnutls_libs", LIBS) fi AC_CHECK_FUNC(gnutls_certificate_verification_status_print, [AC_DEFINE(HAVE_GNUTLS_CERTIFICATE_VERIFICATION_STATUS_PRINT)]) @@ -5385,7 +5385,7 @@ fi nss_libs=`pkg-config --libs nss` if test "$?" = 0; then - XE_PREPEND("$nss_libs", LDFLAGS) + XE_APPEND("$nss_libs", LIBS) fi else AC_DEFINE(HAVE_OPENSSL) @@ -5395,7 +5395,7 @@ fi openssl_libs=`pkg-config --libs openssl` if test "$?" = 0; then - XE_PREPEND("$openssl_libs", LDFLAGS) + XE_APPEND("$openssl_libs", LIBS) fi AC_CHECK_FUNC(X509_check_host, [AC_DEFINE(HAVE_X509_CHECK_HOST)]) fi