fix #356, disable TLS for uClibc

This commit is contained in:
Max Lv
2015-07-20 00:32:03 +09:00
parent 53ddb3b4d2
commit 2b1eef1197
14 changed files with 184 additions and 39 deletions
+2 -2
View File
@@ -75,10 +75,10 @@
#endif
/* Thread-local storage has been available since GCC 3.3, but not on Mac
* OS X. */
* OS X. Also disable TLS for uClibc*/
#if !(defined(__APPLE__) && defined(__MACH__))
#if CORK_CONFIG_GCC_VERSION >= 30300
#if CORK_CONFIG_GCC_VERSION >= 30300 && defined(TLS)
#define CORK_CONFIG_HAVE_THREAD_STORAGE_CLASS 1
#else
#define CORK_CONFIG_HAVE_THREAD_STORAGE_CLASS 0