From: Steffan Karger Date: Sat, 28 Nov 2015 22:48:01 +0000 (+0100) Subject: Fix openssl builds with custom-built library: specify most-dependent first X-Git-Tag: v2.4_alpha1~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09f2670ce27158f81b4983c06f63870a5188d4aa;p=thirdparty%2Fopenvpn.git Fix openssl builds with custom-built library: specify most-dependent first Libraries should be specified from left-to-right as most-dependent to least-dependent. Thus, -lssl comes first, then -lcrypto. (This does not fail when pkg-config finds your libraries for you, since we tell it '-lssl needs -lcrypto' and we then end up with "-lcrypto -lssl -lcrypto", which is not pretty but does work.) Signed-off-by: Steffan Karger Acked-by: Arne Schwabe Message-Id: <1448750881-10767-1-git-send-email-steffan@karger.me> URL: http://article.gmane.org/gmane.network.openvpn.devel/10649 Signed-off-by: Gert Doering --- diff --git a/configure.ac b/configure.ac index d3cacc88a..a8675fedd 100644 --- a/configure.ac +++ b/configure.ac @@ -1080,7 +1080,7 @@ if test "${enable_crypto}" = "yes"; then test "${have_crypto_crypto}" != "yes" && AC_MSG_ERROR([${with_crypto_library} crypto is required but missing]) test "${enable_crypto_ofb_cfb}" = "yes" && AC_DEFINE([ENABLE_OFB_CFB_MODE], [1], [Enable OFB and CFB cipher modes]) OPTIONAL_CRYPTO_CFLAGS="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}" - OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}" + OPTIONAL_CRYPTO_LIBS="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS} ${CRYPTO_CRYPTO_LIBS}" AC_DEFINE([ENABLE_CRYPTO], [1], [Enable crypto library]) fi