GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. # Local configure fragment for sysdeps/s390/s390-64. # Bypass result of runtime configure check for known linker versions as # e.g. crt-files or libc.so might not be available in bootstrapping # environments. case $($LD --version) in "GNU gold"*) # As of 2023-08-07, gold does not support static PIE due to # Bug 22221 - add --no-dynamic-linker option # https://sourceware.org/bugzilla/show_bug.cgi?id=22221 libc_cv_s390x_staticpie_req_version=no ;; "LLD"*) # As of 2023-08-07, there is no lld which supports s390x. libc_cv_s390x_staticpie_req_version=no ;; *) # The required binutils patches are available with bintuils 2.39 libc_cv_s390x_staticpie_req_version=yes # Skip AC_CHECK_PROGS and just use the result from main configure.ac. libc_cv_s390x_staticpie_req_LD=$LD AC_CHECK_PROG_VER(libc_cv_s390x_staticpie_req_LD, $LD, --version, [GNU ld.* \([0-9][0-9]*\.[0-9.]*\)], [2.1[0-9][0-9]*|2.39*|2.[4-9][0-9]*|[3-9].*|[1-9][0-9]*], libc_cv_s390x_staticpie_req_version=no) ;; esac AC_MSG_CHECKING([for s390-specific static PIE requirements (version check)]) AC_MSG_RESULT($libc_cv_s390x_staticpie_req_version) # 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)], \ [libc_cv_s390x_staticpie_req_runtime], [dnl cat > conftest1.c < conftest2.c <