From 362588f7cc56354b3566a14dfbeb55ad74a9bd31 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 20 Jun 2024 10:40:02 +0200 Subject: s390x: Capture grep output in static PIE check The test is not a run-time check, so update the description. Also use readelf -W for a more stable output format and fix an LC_ALL typo. This avoids garbled configure messages: checking for s390-specific static PIE requirements (runtime check)... 0x0000000000000017 (JMPREL) 0x280 yes --- sysdeps/s390/s390-64/configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps/s390/s390-64/configure.ac') diff --git a/sysdeps/s390/s390-64/configure.ac b/sysdeps/s390/s390-64/configure.ac index fd729e1496..aaf71eabb1 100644 --- a/sysdeps/s390/s390-64/configure.ac +++ b/sysdeps/s390/s390-64/configure.ac @@ -4,7 +4,7 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. # Minimal checking for static PIE support in ld. # Compare to ld testcase/bugzilla: # /ld/testsuite/ld-elf/pr22263-1.rd -AC_CACHE_CHECK([for s390-specific static PIE requirements (runtime check)], \ +AC_CACHE_CHECK([for s390-specific static PIE requirements], \ [libc_cv_s390x_staticpie_req_runtime], [dnl cat > conftest1.c <&AS_MESSAGE_LOG_FD) \ + && AC_TRY_COMMAND([LC_ALL=C $READELF -Wd conftest | grep JMPREL >&AS_MESSAGE_LOG_FD]) then libc_cv_s390x_staticpie_req_runtime=yes fi -- cgit 1.4.1