diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-11-14 03:32:36 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-11-14 03:32:36 +0000 |
commit | 1f109fc281cad7b56919c7eefe74db914a674f22 (patch) | |
tree | 7574c9996524f820ff874ed3450f154229d3a4ae | |
parent | aaa02ae6b6a941b46586e3b4854bdd60b06ca7f8 (diff) | |
download | binutils-redhat-1f109fc281cad7b56919c7eefe74db914a674f22.tar.gz |
* tls.m4 (GCC_CHECK_TLS): Fall back to a link test.
-rw-r--r-- | config/ChangeLog | 4 | ||||
-rw-r--r-- | config/tls.m4 | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 57c31f485d..fda6f95a2c 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2006-11-13 Daniel Jacobowitz <dan@codesourcery.com> + + * tls.m4 (GCC_CHECK_TLS): Fall back to a link test. + 2006-10-14 Geoffrey Keating <geoffk@apple.com> * multi.m4: New file, from automake version 2 branch. diff --git a/config/tls.m4 b/config/tls.m4 index b7a07309ab..b66b6d758c 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, |