]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Reduce overlinking per pkg-config spec (#1870)
authorEnji Cooper <1574099+ngie-eign@users.noreply.github.com>
Sat, 13 May 2023 04:12:01 +0000 (21:12 -0700)
committerGitHub <noreply@github.com>
Sat, 13 May 2023 04:12:01 +0000 (21:12 -0700)
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.

configure.ac

index 4f83fed2659bbcd7e4555f35f2502b43d5198820..24049852b65dadac2ad16f2befbeee79a4874695 100644 (file)
@@ -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)