diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-12-02 16:00:27 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-12-06 09:40:19 -0300 |
commit | 6cfc50f40a5e59bc46d8b45bc7520f719e86af1e (patch) | |
tree | 316a68a008dff5637fdf21307c76b4e53c7a63a2 /sysdeps | |
parent | f35b7ce02fcf5267e128f25d4b01b80711a01110 (diff) | |
download | glibc-6cfc50f40a5e59bc46d8b45bc7520f719e86af1e.tar.gz glibc-6cfc50f40a5e59bc46d8b45bc7520f719e86af1e.tar.xz glibc-6cfc50f40a5e59bc46d8b45bc7520f719e86af1e.zip |
configure: Remove check if ld is GNU
Assume linker has gnu argument input style. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/configure | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/configure b/sysdeps/unix/sysv/linux/powerpc/configure index 7183573bc0..84a39495f0 100644 --- a/sysdeps/unix/sysv/linux/powerpc/configure +++ b/sysdeps/unix/sysv/linux/powerpc/configure @@ -79,30 +79,28 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-tls-get-addr-optimize" >&5 $as_echo_n "checking for linker that supports --no-tls-get-addr-optimize... " >&6; } libc_linker_feature=no -if test x"$gnu_ld" = x"yes"; then - cat > conftest.c <<EOF +cat > conftest.c <<EOF int _start (void) { return 42; } EOF - if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp - -Wl,--no-tls-get-addr-optimize -nostdlib -nostartfiles - -fPIC -shared -o conftest.so conftest.c - 1>&5' +if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp + -Wl,--no-tls-get-addr-optimize -nostdlib -nostartfiles + -fPIC -shared -o conftest.so conftest.c + 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } - then - if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-tls-get-addr-optimize -nostdlib \ - -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ - | grep "warning: --no-tls-get-addr-optimize ignored" > /dev/null 2>&1; then - true - else - libc_linker_feature=yes - fi +then + if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-tls-get-addr-optimize -nostdlib \ + -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ + | grep "warning: --no-tls-get-addr-optimize ignored" > /dev/null 2>&1; then + true + else + libc_linker_feature=yes fi - rm -f conftest* fi +rm -f conftest* if test $libc_linker_feature = yes; then libc_cv_tls_get_addr_optimize=yes else |