diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-07-03 16:06:50 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-03 16:06:50 +0200 |
commit | a79b6fb7c2941e5fd1b58414d1d8778f86ceab5d (patch) | |
tree | b34230d98c1dd8f61da3fc3a81ecba3abc648d60 /ConfigureChecks.cmake | |
parent | ecc3df6cae302e56e60d707114b53f59ca2d88e1 (diff) | |
download | socket_wrapper-a79b6fb7c2941e5fd1b58414d1d8778f86ceab5d.tar.gz socket_wrapper-a79b6fb7c2941e5fd1b58414d1d8778f86ceab5d.tar.xz socket_wrapper-a79b6fb7c2941e5fd1b58414d1d8778f86ceab5d.zip |
cmake: Check for Thread Local Storage.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 10373c1..151745a 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -144,6 +144,13 @@ int main(void) { return 0; }" HAVE_DESTRUCTOR_ATTRIBUTE) +check_c_source_compiles(" +__thread int tls; + +int main(void) { + return 0; +}" HAVE_GCC_THREAD_LOCAL_STORAGE) + check_library_exists(dl dlopen "" HAVE_LIBDL) if (HAVE_LIBDL) find_library(DLFCN_LIBRARY dl) |