Hi,

I am just wondering why TLS is not enabled by default in glibc with
linuxthreads. Both Debian and Redhat enable it by default.

Also the Glibc INSTALL file states:


`--without-tls'
     By default the C library is built with support for thread-local
     storage if the used tools support it.  By using `--without-tls'
     this can be prevented though there generally is no reason since it
     creates compatibility problems.
 

I realise it used to be the case that nvidia-glx would not work with it
but that is no longer the case.

It could be that you don't trust the build tools to work (binutils,
gcc); but I don't think that is any longer the case.

It is just with this multiple version glibc thing, I am trying to select
suitable flavours of glibc:

So far I am thinking of:
/lib - linuxthreads, kernel-version=2.2.5 no-tls
/lib/i686 - linuxthreads tls kernel-version=2.4.1
/lib/tls - nptl tls kernel-version=2.6.0

with the ld-linux.so in /lib being the one from 
"linuxthreads tls kernel-version=2.4.1" (if any of the libraries have
TLS then the main ld-linux.so needs TLS)

This would mean 2.2 kernels will not run; but I don't think that is an
issue.

Sound ok?

Also I would like to see the CFLAGS in glibc upped,

Debian unstable uses:

-march=i686 -mcpu=i686 -g0 -O3 -fomit-frame-pointer
-D__USE_STRING_INLINES

for i686 optimised binaries; I would like to see the same possibility in
gentoo. Debian after all has always been seem to err on the side of
caution.

Stefan
-- 
Stefan Jones <[EMAIL PROTECTED]>
Gentoo Linux


--
[EMAIL PROTECTED] mailing list

Reply via email to