]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: improve libcrypto library detection
authorPádraig Brady <P@draigBrady.com>
Mon, 26 Feb 2024 19:10:14 +0000 (19:10 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 26 Feb 2024 19:10:14 +0000 (19:10 +0000)
* configure.ac: Match literal '.' in the file name
to avoid potential mismatches with similarly named libs.
Reported by Andreas Schwab

configure.ac

index eb6c33aa45b4cced9954ff03e734f1ac4487bbd8..fe8408a06c7f35d5a8879806dbc0a5a3741d6e59 100644 (file)
@@ -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])])