From: Enji Cooper <1574099+ngie-eign@users.noreply.github.com> Date: Sat, 13 May 2023 04:12:01 +0000 (-0700) Subject: Reduce overlinking per pkg-config spec (#1870) X-Git-Tag: v3.7.0~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f3c62ebf4d492ac21d3099b3b064993100dd997;p=thirdparty%2Flibarchive.git Reduce overlinking per pkg-config spec (#1870) libssl isn't required for libarchive. Remove libssl so the installed .pc file doesn't cause consumers to subsequently overlink libssl into their code. This doesn't affect how the code is linked -- only consumers of the pkg-config specified spec. --- diff --git a/configure.ac b/configure.ac index 4f83fed26..24049852b 100644 --- a/configure.ac +++ b/configure.ac @@ -1227,7 +1227,7 @@ fi if test "x$with_openssl" != "xno"; then AC_CHECK_HEADERS([openssl/evp.h]) saved_LIBS=$LIBS - LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }libssl libcrypto" + LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }libcrypto" AC_CHECK_LIB(crypto,OPENSSL_config) CRYPTO_CHECK(MD5, OPENSSL, md5) CRYPTO_CHECK(RMD160, OPENSSL, rmd160)