From: Steffan Karger Date: Tue, 30 May 2017 22:50:44 +0200 Message-Id: <1496177444-18373-1-git-send-email-steffan@...1856...> Subject: [Openvpn-devel] [PATCH release/2.4] configure.ac: fix building against static openssl List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net 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 --- 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