Revision: 55657
          http://sourceforge.net/p/brlcad/code/55657
Author:   brlcad
Date:     2013-06-04 11:37:44 +0000 (Tue, 04 Jun 2013)
Log Message:
-----------
thanks netbsd 5 ... they partially implemented TLS support so it compiles and 
links, but will simply crash at runtime. (gives __tls_get_addr() runtime link 
failure on library linkage)  change the test to also run the test, not just 
compile it for the __thread test only to catch this failure.  pthread fallback 
should hopefully still work.

Modified Paths:
--------------
    brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2013-06-04 06:27:04 UTC (rev 55656)
+++ brlcad/trunk/CMakeLists.txt 2013-06-04 11:37:44 UTC (rev 55657)
@@ -1628,13 +1628,15 @@
 BRLCAD_TYPE_SIZE("uintptr_t" "")
 BRLCAD_TYPE_SIZE("sig_t" "signal.h")
 
+
 # see if we have a TLS intrinsic, first check C++11 compliance
 check_cxx_source_compiles("static thread_local int i = 0; int main() { return 
i; }" HAVE_THREAD_LOCAL)
 if (HAVE_THREAD_LOCAL)
   CONFIG_H_APPEND(BRLCAD "#define HAVE_THREAD_LOCAL 1\n")
 else (HAVE_THREAD_LOCAL)
   # try GCC except Mac OS X
-  check_cxx_source_compiles("static __thread int i = 0; int main() { return i; 
}" HAVE___THREAD)
+  include(CheckCXXSourceRuns)
+  check_cxx_source_runs("static __thread int i = 0; int main() { return i; }" 
HAVE___THREAD)
   if (HAVE___THREAD)
     CONFIG_H_APPEND(BRLCAD "#define HAVE___THREAD 1\n")
   else (HAVE___THREAD)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to