diff options
| author | Roland McGrath <[email protected]> | 2009-01-23 03:40:50 -0800 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2009-01-23 03:40:50 -0800 |
| commit | 578444434a79a89823425dacab5a918046ca0c81 (patch) | |
| tree | 066760a44c11f55769ab05ff73a6cd26f70b81a0 | |
| parent | 8181739c44410da185ca2da897e0cc9fb2361c87 (diff) | |
Test with local-dynamic TLS model as libelf will use.
| -rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 657bf501..24353f63 100644 --- a/configure.ac +++ b/configure.ac @@ -76,7 +76,9 @@ AS_IF([test "x$ac_cv_c99" != xyes], AC_CACHE_CHECK([for __thread support], ac_cv_tls, [dnl AC_LINK_IFELSE([dnl -AC_LANG_PROGRAM([[static __thread int a; int foo (int b) { return a + b; }]], +AC_LANG_PROGRAM([[#undef __thread +static __thread int a __attribute__ ((tls_model ("local-dynamic"))); +int foo (int b) { return a + b; }]], [[exit (foo (0));]])], ac_cv_tls=yes, ac_cv_tls=no)]) AS_IF([test "x$ac_cv_tls" != xyes], |
