summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Dymond <cmeister2@gmail.com>2018-06-26 09:29:48 +0100
committerMax Dymond <cmeister2@gmail.com>2018-06-26 17:12:36 +0100
commit12370819288d3fb74c40e8a299bf360c13c58175 (patch)
treef6d469ac7d9d6a0dcb3ad13e2a99ae76e9e8be95
parentf762fec323f36fd7da7ad6eddfbbae940ec3229e (diff)
downloadcurl-cmeister2/openssllinkerorder.tar.gz
configure: Add dependent libraries after cryptocmeister2/openssllinkerorder
The linker is pretty dumb and processes things left to right, keeping a tally of symbols it hasn't resolved yet. So, we need -ldl to appear after -lcrypto otherwise the linker won't find the dl functions.
-rwxr-xr-xconfigure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index f38e1c0ce..d23be37c6 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1657,7 +1657,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="$LIBS -ldl -lcrypto"
+ LIBS="$CLEANLIBS -lcrypto -ldl"
AC_TRY_LINK(
[
#include <openssl/err.h>
@@ -1671,10 +1671,10 @@ if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
],
[
AC_MSG_RESULT(no)
- dnl ok, so what about bouth -ldl and -lpthread?
+ dnl ok, so what about both -ldl and -lpthread?
AC_MSG_CHECKING([OpenSSL linking with -ldl and -lpthread])
- LIBS="$CLEANLIBS -ldl -lpthread -lcrypto"
+ LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
AC_TRY_LINK(
[
#include <openssl/err.h>