summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-06-10 20:39:08 +0200
committerIvan Maidanski <ivmai@mail.ru>2013-06-10 20:39:08 +0200
commit7e378ce7d0c77402ecac6d5a3777bdcaf5956fd6 (patch)
treebbe2ff7de0ea48a8e27743774a8763b941f3e026
parentd2a2e4d5274777fcecaf0a912e65520a34e10fd4 (diff)
Workaround 'unresolved __tls_get_addr' error for Android NDK Clang/x86
* include/private/thread_local_alloc.h (USE_COMPILER_TLS): Do not use for Android NDK Clang (to workaround "unresolved __tls_get_addr" linker error reported both by clang/x86 and clang/mips).
-rw-r--r--include/private/thread_local_alloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/private/thread_local_alloc.h b/include/private/thread_local_alloc.h
index 98a9b97..686b638 100644
--- a/include/private/thread_local_alloc.h
+++ b/include/private/thread_local_alloc.h
@@ -45,8 +45,8 @@
# endif /* !GNU */
# elif defined(LINUX) && !defined(ARM32) && !defined(AVR32) \
&& (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) \
- && !(defined(__clang__) && defined(MIPS) && defined(PLATFORM_ANDROID))
- /* As of Android NDK r8e, Clang/mips cannot find __tls_get_addr. */
+ && !(defined(__clang__) && defined(PLATFORM_ANDROID))
+ /* As of Android NDK r8e, Clang cannot find __tls_get_addr. */
# define USE_COMPILER_TLS
# elif defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) \
|| defined(GC_AIX_THREADS) || defined(GC_DARWIN_THREADS) \