aboutsummaryrefslogtreecommitdiff
path: root/gold/configure
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-01-30 21:13:30 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-01-30 21:13:30 +0000
commit63887f3df5f9d17a88da98bdd2a761f830d61191 (patch)
tree71ec72c56e337e99215438799e720b3a51f53b87 /gold/configure
parent8fc3fc345540f264ddc61b7d828b62e75e0a5049 (diff)
downloadgdb-63887f3df5f9d17a88da98bdd2a761f830d61191.zip
gdb-63887f3df5f9d17a88da98bdd2a761f830d61191.tar.gz
gdb-63887f3df5f9d17a88da98bdd2a761f830d61191.tar.bz2
Check if -fpic -mtls-dialect=gnu2 works
2012-01-30 H.J. Lu <hongjiu.lu@intel.com> * configure.ac: Check if -fpic -mtls-dialect=gnu2 works. * configure: Regenerated.
Diffstat (limited to 'gold/configure')
-rwxr-xr-xgold/configure10
1 files changed, 8 insertions, 2 deletions
diff --git a/gold/configure b/gold/configure
index aca7cab..b1744a8 100755
--- a/gold/configure
+++ b/gold/configure
@@ -6437,10 +6437,16 @@ fi
save_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -mtls-dialect=gnu2"
+CFLAGS="$CFLAGS -fpic -mtls-dialect=gnu2"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-int i;
+
+__thread int i;
+void foo (void)
+{
+ i = 10;
+}
+
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
have_tls_gnu2=yes