From 2d632937e67fff1a5183c5b1c79d4314e39d9cfb Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 16 Sep 2021 10:04:22 -0600 Subject: [PATCH] Fix the OpenSSL link order for the non-pkg-config case. Since -lssl depends on -lcrypto, -lcrypto must be listed after -lssl. Fixes linking of non-dynamic OpenSSL libs. --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index ca416add4..f762ad2f7 100755 --- a/configure +++ b/configure @@ -23674,7 +23674,7 @@ fi else enable_openssl=yes fi - LIBTLS="${LIBTLS} -lcrypto -lssl" + LIBTLS="${LIBTLS} -lssl -lcrypto" # Use OpenSSL's sha2 functions if possible { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA224_Update in -lcrypto" >&5 diff --git a/configure.ac b/configure.ac index c6e383dd3..9454f9307 100644 --- a/configure.ac +++ b/configure.ac @@ -2995,7 +2995,7 @@ if test "${enable_openssl-no}" != no; then else enable_openssl=yes fi - LIBTLS="${LIBTLS} -lcrypto -lssl" + LIBTLS="${LIBTLS} -lssl -lcrypto" # Use OpenSSL's sha2 functions if possible AC_CHECK_LIB(crypto, SHA224_Update, [