mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:41:41 +03:00
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
This commit is contained in:
parent
94696e1b51
commit
9597d2def7
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue