aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Johnson <computerdruid@google.com>2017-12-28 18:16:26 +0000
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-01-13 10:46:57 +0100
commit0616dfa1e08c25ec8ff0f06c014bd3836b365049 (patch)
treef8724337a5e2373e31d709cf9ba938ed89f29c6b
parent650b9c1d6547995e31f92e082ae73edbdcc51ed0 (diff)
configure.ac: append extra linker flags instead of prepending them.
Link order should list libraries after the libraries that use them, so when we're guessing that we might also need to add -ldl in order to use -lssl, we should add -ldl after -lssl. Closes https://github.com/curl/curl/pull/2234
-rwxr-xr-xconfigure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 5292937bb..c223a0436 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1656,7 +1656,7 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
dnl still no, but what about with -ldl?
AC_MSG_CHECKING([OpenSSL linking with -ldl])
- LIBS="-ldl $LIBS"
+ LIBS="$LIBS -ldl"
AC_TRY_LINK(
[
#include <openssl/err.h>
@@ -1673,7 +1673,7 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
dnl ok, so what about bouth -ldl and -lpthread?
AC_MSG_CHECKING([OpenSSL linking with -ldl and -lpthread])
- LIBS="-lpthread $LIBS"
+ LIBS="$LIBS -lpthread"
AC_TRY_LINK(
[
#include <openssl/err.h>