2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

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.
This commit is contained in:
Todd C. Miller 2021-09-16 10:04:22 -06:00
parent e1653be435
commit 2d632937e6
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -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

View File

@ -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, [