summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Gilbert <bgilbert@backtick.net>2012-12-02 04:55:31 (GMT)
committerSiarhei Siamashka <siarhei.siamashka@gmail.com>2012-12-08 14:41:10 (GMT)
commit7e39861da3655779ce76a72592feed3c1dd90017 (patch)
tree3d73baea54d3c960d57f6604915787576c4dc132
parentebedd9a2ad8e841cd8323838b5136657d9ebb988 (diff)
downloadpixman-7e39861da3655779ce76a72592feed3c1dd90017.tar.gz
pixman-7e39861da3655779ce76a72592feed3c1dd90017.tar.xz
Fix thread safety on mingw-w64 and clang
After finding a working TLS storage class specifier, configure was continuing to test other candidates. This caused it to prefer __declspec(thread) over __thread. However, __declspec(thread) is ignored with a warning by mingw-w64 [1] and silently ignored by clang [2]. The resulting binary behaved as if PIXMAN_NO_TLS was defined. Bug introduced by a069da6c. [1] https://bugs.freedesktop.org/show_bug.cgi?id=57591 [2] http://lists.freedesktop.org/archives/pixman/2012-October/002320.html
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 45b709d..81f068d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -860,7 +860,7 @@ AC_CACHE_VAL(ac_cv_tls, [
#error OpenBSD has broken __thread support
#endif
-int $kw test;], [], ac_cv_tls=$kw)
+int $kw test;], [], [ac_cv_tls=$kw; break])
done
])
AC_MSG_RESULT($ac_cv_tls)