MantisBT - CMake
View Issue Details
0013973CMakeModulespublic2013-03-04 04:342015-04-06 09:07
diger 
 
normalminorhave not tried
closedfixed 
x86-x86_64Haiku1
CMake 2.8.10 
 
0013973: patch for fix FindThreads on haiku
This patch workarounds issue with pthreads on Haiku platform. The source of problem was that pthreads support is implemented in libroot.
No tags attached.
? patch-Modules_FindThreads.cmake (423) 2013-03-04 04:34
https://public.kitware.com/Bug/file/4665/patch-Modules_FindThreads.cmake
Issue History
2013-03-04 04:34digerNew Issue
2013-03-04 04:34digerFile Added: patch-Modules_FindThreads.cmake
2013-03-04 04:54Rolf Eike BeerNote Added: 0032432
2013-03-05 04:27digerNote Added: 0032507
2013-03-05 11:59Rolf Eike BeerNote Added: 0032510
2013-03-06 05:34digerNote Added: 0032517
2013-03-06 06:13Rolf Eike BeerNote Added: 0032518
2013-03-06 15:00digerNote Added: 0032524
2013-03-06 15:16Rolf Eike BeerNote Added: 0032525
2014-10-06 16:16Rolf Eike BeerNote Added: 0036987
2014-10-06 16:16Rolf Eike BeerStatusnew => resolved
2014-10-06 16:16Rolf Eike BeerResolutionopen => fixed
2014-10-06 16:16Rolf Eike BeerCategoryCMake => Modules
2015-04-06 09:07Robert MaynardNote Added: 0038420
2015-04-06 09:07Robert MaynardStatusresolved => closed

Notes
(0032432)
Rolf Eike Beer   
2013-03-04 04:54   
libroot is not automatically linked?
(0032507)
diger   
2013-03-05 04:27   
Looks like it is not linked automatically. Should it do this?
(0032510)
Rolf Eike Beer   
2013-03-05 11:59   
No idea, just because "root" is such a basic name I assumed it could be.
(0032517)
diger   
2013-03-06 05:34   
http://ports.haiku-files.org/wiki/CommonProblems [^]
(0032518)
Rolf Eike Beer   
2013-03-06 06:13   
This suggests that libroot should be automatically linked in.
(0032524)
diger   
2013-03-06 15:00   
how? CMAKE defines haiku as Unix. Of course when testing for the presence of threads using the flag -lpthread! But there is no such library of Haiku.
(0032525)
Rolf Eike Beer   
2013-03-06 15:16   
I interpret this as "libroot is automatically linked":

> No -lm was encountered: The -lm refers to libm which isn't needed for Haiku or BeOS. As the math library is part of libroot, is linked by default, implicitly.

And the module says (and does) this, see line 48ff:

# Check if pthread functions are in normal C library
(0036987)
Rolf Eike Beer   
2014-10-06 16:16   
It has been reported on IRC by PulkoMandy that things work fine now on Haiku.
(0038420)
Robert Maynard   
2015-04-06 09:07   
Closing resolved issues that have not been updated in more than 4 months.