build: added support for the MK_PTHREAD_TLS option for testing purposes
@@ -176,6 +176,7 @@ if(MK_LINUX_TRACE)
endif()
# Use old Pthread TLS
+if(NOT MK_PTHREAD_TLS)
check_c_source_compiles("
__thread int a;
int main() {
@@ -186,6 +187,7 @@ check_c_source_compiles("
if(HAVE_C_TLS)
MK_DEFINITION(MK_HAVE_C_TLS)
endif()
+endif()
# Valgrind support
check_c_source_compiles("
