projects
/
platform
/
upstream
/
elfutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8181739
)
Test with local-dynamic TLS model as libelf will use.
author
Roland McGrath
<roland@redhat.com>
Fri, 23 Jan 2009 11:40:50 +0000
(
03:40
-0800)
committer
Roland McGrath
<roland@redhat.com>
Fri, 23 Jan 2009 11:40:50 +0000
(
03:40
-0800)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
657bf50
..
24353f6
100644
(file)
--- 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],