[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to detect NPTL at compile time



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wan-Teh Chang wrote:
> Red Hat Linux 9 ships with the NPTL.  Our code
> contains workarounds for LinuxThreads, and I
> want to disable the workarounds if we are compiling
> against NPTL.  How do I detect whether the pthread
> library is LinuxThreads or NPTL at compile time?

This cannot be answered easily.  If you build a binary on RHL9 it'll be
default link with LinuxThreads and at runtime it'll use by default NPTL.
 You can force using NPTL at link time as well by adding -L/usr/lib/nptl
to your link line.  When you do this there is no further need to find it
out, you better know it beforehand.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+jg9x2ijCOnn/RHQRAmtBAJ9BkfdZaDPpB4gu1iVuI31ZSkGBnwCcCUqU
HVgiFRGSuSwg54PZtfS1nUA=
=wucq
-----END PGP SIGNATURE-----





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]