public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] TLS in glibc
@ 2003-11-06 16:59 Stefan Jones
  2003-11-06 19:27 ` [gentoo-dev] " Martin Schlemmer
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Jones @ 2003-11-06 16:59 UTC (permalink / raw
  To: Martin Schlemmer; +Cc: gentoo-dev

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 <cretin@gentoo.org>
Gentoo Linux


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-06 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-06 16:59 [gentoo-dev] TLS in glibc Stefan Jones
2003-11-06 19:27 ` [gentoo-dev] " Martin Schlemmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox