changeset 5831:ad3e9b3274d5

Link SSL libraries using $LIBS instead of $LDFLAGS.
author Jeff Sparkes <jsparkes@gmail.com>
date Thu, 27 Nov 2014 14:29:40 -0500
parents 0303baa7c4e9
children af34373e378f
files ChangeLog configure.ac
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Nov 10 14:20:19 2014 -0500
+++ b/ChangeLog	Thu Nov 27 14:29:40 2014 -0500
@@ -1,3 +1,8 @@
+2014-11-09  Jeff Sparkes  <jsparkes@gmail.com>
+
+	* configure.ac (HAVE_GNUTLS): Add SSL/TLS libraries to $LIBS, not
+	$LDFLAGS.
+
 2014-10-10  Marcus Crestani  <crestani@xemacs.org>
         
 	* configure.ac: Disable ASLR on Yosemite.
--- a/configure.ac	Mon Nov 10 14:20:19 2014 -0500
+++ b/configure.ac	Thu Nov 27 14:29:40 2014 -0500
@@ -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