commit:     a38d957a825418fefeebc4212cc9e6d34ecdd8b0
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 23 03:14:58 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Jun 23 17:25:40 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=a38d957a

configure: update libc grep expression

On Alpine, libc's SONAME is 'libc.musl-x86_64.so.1'.

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
(cherry picked from commit 3ccc775d6f98c1917408bc3a370cfd6d3d789d50)

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ca5ed5b..a030dce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -389,7 +389,7 @@ echo "int main(void) { return 0; }" > libctest.c
 $CC $CFLAGS $CPPFLAGS $LDFLAGS -o libctest libctest.c
 LIBC_VERSION=$(
        $READELF -d libctest | \
-       $EGREP 'NEEDED.* \@<:@libc\.so' | \
+       $EGREP 'NEEDED.* \@<:@libc\..*so' | \
        $AWK '{print $NF}' | [sed -e 's:\[::' -e 's:\]::']
 )
 rm -f libctest*

Reply via email to