[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

Hui Huang wrote:

> As pointed out by another email today, apparently confstr()
> doesn't work correctly on RH-9. It always returns "NPTL 0.29"
> even I'm running with LinuxThreads. Any workaround for that?

Running with LinuxThreads?  If you run

  getconf GNU_LIBPTHREAD_VERSION

you'll get NPTL x.y.  If you run

  LD_ASSUME_KERNEL=2.4.1 getconf GNU_LIBPTHREAD_VERSION

you'll get linuxthread-0.10.

The information comes from the libc.so which is used.  The libc.so and
libpthread.so must always match.

- -- 
- --------------.                        ,-.            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+jhLu2ijCOnn/RHQRAo0bAJ48xryEKe/J/FkHxKE3wwMUEuJHagCdHnRi
xZnxrw27pijKuhssVu9GTzk=
=3wvQ
-----END PGP SIGNATURE-----





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