]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Ignore undefined symbols for -mtls-dialect=gnu2
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 12 Mar 2024 16:21:18 +0000 (13:21 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 19 Mar 2024 17:53:30 +0000 (14:53 -0300)
So it does not fail for arm config that defaults to -mtp=soft (which
issues a call to __aeabi_read_tp).
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
configure
configure.ac

index 59ff1e415dda4fbf1f260befb3aec5c0e4405dc6..117b48a421792edabc7bc95a4a7648ac0e117c7c 100755 (executable)
--- a/configure
+++ b/configure
@@ -7020,7 +7020,7 @@ void foo (void)
 }
 EOF
 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
-                  conftest.c -o conftest 1>&5'
+                  -shared conftest.c -o conftest 1>&5'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   (eval $ac_try) 2>&5
   ac_status=$?
index 65799e56852a5356b0562faa30b89b2dd5536923..19b88a47a52508a13a998217416c6f3efb32e6e2 100644 (file)
@@ -1297,7 +1297,7 @@ void foo (void)
 }
 EOF
 if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
-                  conftest.c -o conftest 1>&AS_MESSAGE_LOG_FD])
+                  -shared conftest.c -o conftest 1>&AS_MESSAGE_LOG_FD])
 then
   libc_cv_mtls_dialect_gnu2=yes
 else