Skip to content

Commit f7053d0

Browse files
committed
Handle glibc-hwcaps on ppc64le on CentOS/RHEL/Rocky 8 for tests/replace-add-needed.sh (fixes #406)
ldd(1) usually returns for ELF binaries output like this: libc.so.6 => /lib64/libc.so.6 (0x00007fbacd6ca000) But with glibc-hwcaps, the output could also be like this: libc.so.6 => /lib64/glibc-hwcaps/power9/libc-2.28.so (0x00007fffb5800000) See also: https://sourceware.org/pipermail/libc-alpha/2020-June/115250.html
1 parent c2b419d commit f7053d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/replace-add-needed.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cp libbar.so ${SCRATCH}/
1111

1212
cd ${SCRATCH}
1313

14-
libcldd=$(ldd ./simple | awk '/ => / { print $3 }' | grep -E "(libc.so|ld-musl)")
14+
libcldd=$(ldd ./simple | awk '/ => / { print $3 }' | grep -E "(libc(-[0-9.]*)*.so|ld-musl)")
1515

1616
# We have to set the soname on these libraries
1717
${PATCHELF} --set-soname libbar.so ./libbar.so

0 commit comments

Comments
 (0)