summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-06-14 16:52:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-06-14 16:52:43 +0200
commitfb3296763d16b396f362bc752bb461bfa9d788fe (patch)
tree1fffd02a627e6fe462166f952f484d83f72d0bc4
parent81758be83126deb01fef7ccb8c23564aa637ac79 (diff)
downloadcurl-bagder/configure-static-openssl.tar.gz
configure: enhance ability to detect/build with static opensslbagder/configure-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
-rwxr-xr-xconfigure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index a9fd3d103..f38e1c0ce 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"
+ 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>