mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
configure: enhance ability to detect/build with static openssl
Fix the -ldl and -ldl + -lpthread checks for OpenSSL, necessary for building with static libs without pkg-config. Reported-by: Marcel Raad Fixes #2199 Closes #2659
This commit is contained in:
parent
ed224f23d5
commit
351dabbf3d
@ -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"
|
||||
LIBS="$LIBS -ldl -lcrypto"
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <openssl/err.h>
|
||||
@ -1674,7 +1674,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="$LIBS -lpthread"
|
||||
LIBS="$CLEANLIBS -ldl -lpthread -lcrypto"
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <openssl/err.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user