S390: Use compile-only instead of also link-tests in configure.
commit368b7c614b102122b86af3953daea2b30230d0a8
authorStefan Liebler <stli@linux.ibm.com>
Fri, 12 May 2023 10:44:49 +0000 (12 12:44 +0200)
committerStefan Liebler <stli@linux.ibm.com>
Mon, 22 May 2023 07:58:58 +0000 (22 09:58 +0200)
tree5fee750bec3b03f5582207f672183290b9c07a20
parent9cc27336c9b6fc7b59d1adbf36f0a044a0b89a59
S390: Use compile-only instead of also link-tests in configure.

Some of the s390-specific configure checks are using compile and
link configure tests.  Now use only compile tests as the link
tests fails when e.g. bootstrapping a cross-toolchain due to
missing crt-files/libc.so.  This is achieved by using
AC_COMPILE_IFELSE in configure.ac file.

This is observable e.g. when using buildroot which builds glibc
only once or the build-many-glibcs.py script.  Note that the latter
one is building glibc twice in the compilers-step (configure-checks
fails) and in the glibcs-step (configure-checks succeed).

Note, that the s390 specific configure tests for static PIE have to
link an executable to test binutils support.  Thus we can't fix
those tests.
sysdeps/s390/configure
sysdeps/s390/configure.ac