diff options
author | Michael Afanasiev <mafanasiev@gmail.com> | 2021-10-07 14:23:21 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-08 10:50:57 +0200 |
commit | 9597d2def7435bf31966d3179ff37d95c613e9b2 (patch) | |
tree | b34c3254074e050b49238ccc91d2bdae3bc0d335 /m4 | |
parent | 94696e1b51bc05caed7ece734162edfcd3bcd619 (diff) | |
download | curl-9597d2def7435bf31966d3179ff37d95c613e9b2.tar.gz |
curl-openssl.m4: modify library order for openssl linking
lcrypto may depend on lz, and configure corrently fails with when
statically linking as the order is "-lz -lcrypto". This commit switches
the order to "-lcrypto -lz".
Closes #7826
Diffstat (limited to 'm4')
-rw-r--r-- | m4/curl-openssl.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/curl-openssl.m4 b/m4/curl-openssl.m4 index e008c4513..5309f33d2 100644 --- a/m4/curl-openssl.m4 +++ b/m4/curl-openssl.m4 @@ -437,7 +437,7 @@ if test "x$OPT_OPENSSL" != xno; then dnl still no, but what about with -ldl? AC_MSG_CHECKING([OpenSSL linking with -ldl]) - LIBS="$CLEANLIBS -lcrypto -ldl" + LIBS="-lcrypto $CLEANLIBS -ldl" AC_LINK_IFELSE([ AC_LANG_PROGRAM([[ #include <openssl/err.h> ]], [[ @@ -453,7 +453,7 @@ if test "x$OPT_OPENSSL" != xno; then dnl This may be necessary for static libraries. AC_MSG_CHECKING([OpenSSL linking with -ldl and -lpthread]) - LIBS="$CLEANLIBS -lcrypto -ldl -lpthread" + LIBS="-lcrypto $CLEANLIBS -ldl -lpthread" AC_LINK_IFELSE([ AC_LANG_PROGRAM([[ #include <openssl/err.h> |