From: Pádraig Brady Date: Mon, 26 Feb 2024 19:10:14 +0000 (+0000) Subject: build: improve libcrypto library detection X-Git-Tag: v9.5~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45411e3fc609220e707dff9da1dbd749de0fff5a;p=thirdparty%2Fcoreutils.git build: improve libcrypto library detection * configure.ac: Match literal '.' in the file name to avoid potential mismatches with similarly named libs. Reported by Andreas Schwab --- diff --git a/configure.ac b/configure.ac index eb6c33aa45..fe8408a06c 100644 --- a/configure.ac +++ b/configure.ac @@ -373,7 +373,7 @@ AS_CASE([$LIB_CRYPTO], [# readelf works with cross-builds; ldd works on more platforms. LIBCRYPTO_SONAME="`(readelf -d conftest$EXEEXT || ldd conftest$EXEEXT ) 2>/dev/null | - sed -n 's/.*\(libcrypto.so.[[.0-9]]*\).*/\1/p'`" + sed -n 's/.*\(libcrypto\.so\.[[.0-9]]*\).*/\1/p'`" AS_CASE([$LIBCRYPTO_SONAME], [*libcrypto*], [utils_cv_dlopen_libcrypto=yes])])