summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/MultiPackage/MathFunctions/MathFunctions.h
diff options
context:
space:
mode:
authorJerryShih <bignose1007@gmail.com>2019-02-28 08:30:43 (GMT)
committerJerryShih <bignose1007@gmail.com>2019-03-06 03:16:32 (GMT)
commitd53317130e84898c5328c237186dbd995aaf1c12 (patch)
treebf20567ae222dfeb0bc459da8309473c769424c7 /Help/guide/tutorial/MultiPackage/MathFunctions/MathFunctions.h
parent2f59cd637181cd246ab700767ea3e3cbd6cc3df4 (diff)
downloadCMake-d53317130e84898c5328c237186dbd995aaf1c12.zip
CMake-d53317130e84898c5328c237186dbd995aaf1c12.tar.gz
CMake-d53317130e84898c5328c237186dbd995aaf1c12.tar.bz2
FindThreads: Use complete program to test for pthreads in libc
Our check for just `pthread_create` is not sufficient because there are cases where that symbol may be found in libc but not all of pthreads. We first tried to address this in commit e9a1ddc594 (FindThreads: Replace the pthread symbol checking in libc., 2018-11-18, v3.14.0-rc1~292^2) by switching to `pthread_kill`, but that had to be reverted by commit 18320230ec (FindThreads: Revert libc symbol check to pthread_create, 2019-02-27, v3.14.0-rc3~6^2) because there are other cases where `pthread_kill` is in libc but the rest of pthreads is not. Update our check to try a complete program using pthreads as an actual application might. Fixes: #18994
Diffstat (limited to 'Help/guide/tutorial/MultiPackage/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions