Instead of searching for both libssl and libcrypto, just search for openssl as a whole (which depends on libssl and libcrypto). The previous discovery order would result in "-lcrypto -lssl" link flags, while we need "-lssl -lcrypto".
Trac: #863 Signed-off-by: Steffan Karger <stef...@karger.me> --- This patch is for release/2.4 only, because this is already fixed in master by commit 79ea67f77ca3afe91222f62e17df885a30409285. configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2406ad8..854634a 100644 --- a/configure.ac +++ b/configure.ac @@ -859,7 +859,7 @@ if test "${enable_crypto}" = "yes" -a "${with_crypto_library}" = "openssl"; then # if the user did not explicitly specify flags, try to autodetect PKG_CHECK_MODULES( [OPENSSL], - [libcrypto >= 0.9.8, libssl >= 0.9.8], + [openssl >= 0.9.8], [have_openssl="yes"], [have_openssl="no"] # Provide if-not-found to prevent erroring out ) -- 2.7.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel