How to compile BOOST on Linux with NPTL threads and STLPort
Hi, I am trying to use BOOST thread and regex libraries on Linux. I am able to compile them with sTOOLSS=gcc-stlport option. But, I would also like to specify that I would like to use the NPTL thread lib instead of pthread. How can I do it ? Any help would be greatly appreciated. Thanks in Advance Raja
To be more specific, I want to put "/usr/include/nptl" as the include path and "/usr/lib/nptl" as the default lib path so that "bjam" picks up these before compiling with others. How can I achieve this ? Thanks in Advance Raja
Raj wrote:
Hi, I am trying to use BOOST thread and regex libraries on Linux. I am able to compile them with sTOOLSS=gcc-stlport option. But, I would also like to specify that I would like to use the NPTL thread lib instead of pthread.
I don't understand this. At least at my system (2.6.7-1-k7-smp, Debian), the choice is made not at compile time, but it run time. Ordinary, programs use NPTL, but if I export LD_ASSUME_KERNEL=2.4 the old pthreads are used. - Volodya
Thanks for the response. I think I got it working by setting my include path use the correct headers. Raja
participants (2)
-
Raj
-
Vladimir Prus