aboutsummaryrefslogtreecommitdiff
path: root/gold/configure.ac
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-07 17:10:10 +0000
committerIan Lance Taylor <iant@google.com>2007-10-07 17:10:10 +0000
commit6eee141ff6d84d39ca9e364eb98818431162d6df (patch)
treecf13d55adff30ab67d0ab5a0e296007fc02521f7 /gold/configure.ac
parent46cf9fa27e13491561a643178d5ffd2b086183fb (diff)
downloadgdb-6eee141ff6d84d39ca9e364eb98818431162d6df.zip
gdb-6eee141ff6d84d39ca9e364eb98818431162d6df.tar.gz
gdb-6eee141ff6d84d39ca9e364eb98818431162d6df.tar.bz2
Add a TLS test case.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r--gold/configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/configure.ac b/gold/configure.ac
index d01ab91..af62d4a 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -150,6 +150,10 @@ AM_CONDITIONAL(FN_PTRS_IN_SO_WITHOUT_PIC, [
*) true;;
esac])
+dnl Test for __thread support.
+AC_COMPILE_IFELSE([__thread int i = 1;], [tls=yes], [tls=no])
+AM_CONDITIONAL(TLS, test "$tls" = "yes")
+
AM_BINUTILS_WARNINGS
WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`