summaryrefslogtreecommitdiff
path: root/m4/curl-openssl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/curl-openssl.m4')
-rw-r--r--m4/curl-openssl.m44
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>