diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-10-26 10:58:50 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-10-29 09:21:37 -0300 |
commit | 04e8169f1d0397b1ffc77fbb49f4344f1ae53a82 (patch) | |
tree | 5d92901bd10cba04c8d35046dadabeb69c57a1c5 /configure.ac | |
parent | 3d5ecb624638627869e6965410f558b15db6946e (diff) | |
download | glibc-04e8169f1d0397b1ffc77fbb49f4344f1ae53a82.tar.gz |
Check if linker also support -mtls-dialect=gnu2
Since some linkers (for instance lld for i386) does not support it
for all architectures.
Checked on i686-linux-gnu.
Reviewed-by: Fangrui Song <maskray@google.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 00f49f09f7..7eb4239359 100644 --- a/configure.ac +++ b/configure.ac @@ -1493,8 +1493,8 @@ void foo (void) i = 10; } EOF -if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -S -fPIC -mtls-dialect=gnu2 - conftest.c 1>&AS_MESSAGE_LOG_FD]) +if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles + conftest.c -o conftest 1>&AS_MESSAGE_LOG_FD]) then libc_cv_mtls_dialect_gnu2=yes else |