aboutsummaryrefslogtreecommitdiff
path: root/config/tls.m4
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-11-14 03:32:36 +0000
committerDaniel Jacobowitz <drow@false.org>2006-11-14 03:32:36 +0000
commit7173306d0abdd2cb2eb5d806c3e5caf7e39b995a (patch)
tree41a9fa674958319df488bdf91acb94a47e928a36 /config/tls.m4
parent03c2a0f7396ca19ee3c957f9b187acba5e1ec92d (diff)
downloadgdb-7173306d0abdd2cb2eb5d806c3e5caf7e39b995a.zip
gdb-7173306d0abdd2cb2eb5d806c3e5caf7e39b995a.tar.gz
gdb-7173306d0abdd2cb2eb5d806c3e5caf7e39b995a.tar.bz2
* tls.m4 (GCC_CHECK_TLS): Fall back to a link test.
Diffstat (limited to 'config/tls.m4')
-rw-r--r--config/tls.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/config/tls.m4 b/config/tls.m4
index b7a0730..b66b6d7 100644
--- a/config/tls.m4
+++ b/config/tls.m4
@@ -13,7 +13,8 @@ AC_DEFUN([GCC_CHECK_TLS], [
[have_tls=yes], [have_tls=no], [])
LDFLAGS="$save_LDFLAGS"],
[have_tls=no],
- [AC_COMPILE_IFELSE([__thread int foo;], [have_tls=yes], [have_tls=no])]
+ [AC_LINK_IFELSE([__thread int a; int b; int main() { return a = b; }],
+ [have_tls=yes], [have_tls=no])]
)])
if test "$enable_tls $have_tls" = "yes yes"; then
AC_DEFINE(HAVE_TLS, 1,