diff options
author | Razvan Becheriu <ravan@isc.org> | 2019-03-05 17:18:30 +0100 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2019-06-11 08:35:11 +0200 |
commit | 1fa2f5fc928365af411ecbf4f539a30a7ab40b17 (patch) | |
tree | 715979f50f4cecb17986816f44a5d4112d5136d7 /m4macros/ax_crypto.m4 | |
parent | [master] Fix linking issue in libkea-pgsql unit tests. (diff) | |
download | kea-1fa2f5fc928365af411ecbf4f539a30a7ab40b17.tar.xz kea-1fa2f5fc928365af411ecbf4f539a30a7ab40b17.zip |
fixed building from source tith openssl
Diffstat (limited to '')
-rw-r--r-- | m4macros/ax_crypto.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/m4macros/ax_crypto.m4 b/m4macros/ax_crypto.m4 index fe91b1f939..686fea094e 100644 --- a/m4macros/ax_crypto.m4 +++ b/m4macros/ax_crypto.m4 @@ -408,7 +408,7 @@ else if test "${use_openssl}" = "/usr" ; then CRYPTO_CFLAGS="" CRYPTO_INCLUDES="" - CRYPTO_LIBS="-lcrypto" + CRYPTO_LIBS="-lcrypto -lssl" DISTCHECK_CRYPTO_CONFIGURE_FLAG="--with-openssl" else CRYPTO_CFLAGS="" @@ -416,20 +416,20 @@ else DISTCHECK_CRYPTO_CONFIGURE_FLAG="--with-openssl=${use_openssl}" case $host in *-solaris*) - CRYPTO_LIBS="-L${use_openssl}/lib -R${use_openssl}/lib -lcrypto" + CRYPTO_LIBS="-L${use_openssl}/lib -R${use_openssl}/lib -lcrypto -lssl" ;; *-hp-hpux*) - CRYPTO_LIBS="-L${use_openssl}/lib -Wl,+b: -lcrypto" + CRYPTO_LIBS="-L${use_openssl}/lib -Wl,+b: -lcrypto -lssl" ;; *-apple-darwin*) if test -f "${use_openssl}/lib/libcrypto.dylib" ; then - CRYPTO_LIBS="-L${use_openssl}/lib -lcrypto" + CRYPTO_LIBS="-L${use_openssl}/lib -lcrypto -lssl" else CRYPTO_LIBS="${use_openssl}/lib/libcrypto.a" fi ;; *) - CRYPTO_LIBS="-L${use_openssl}/lib -lcrypto" + CRYPTO_LIBS="-L${use_openssl}/lib -lcrypto -lssl" ;; esac fi |