Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 99896

Summary: glibc ebuild filters -mno-tls-direct-seg-refs CFLAG
Product: Gentoo Linux Reporter: Ernst Bachmann <e.bachmann>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ernst Bachmann 2005-07-22 04:42:21 UTC
glibc 3.3.5 supports a different model for accessing TLS memory when compiled 
with the -mno-tls-direct-seg-refs CFLAG (gcc 3.4.4) (glibc Makefiles check for 
that flag and add defines for it, changing some of the ASM code)  
  
however, the "strip-flags" call in the glibc ebuild removes that flag, so this  
feature of glibc is lost. This feature would however be important to Xen 
users. (getting good performance for NPTL under Xen) 
 
Simply adding that option into flag-o-matic.eclass solved the problem for me, 
but a more "permanent" solution would be nice, maybe with an additional USE 
flag for glibc enabling that option. 

Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2005-07-22 14:48:06 UTC
USE flag is kind of pointless overkill

added to flag-o-matic as an ABI flag