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

Bug 285074

Summary: x11-drivers/ati-drivers-9.9 mangles the --as-needed LDFLAGS
Product: Gentoo Linux Reporter: Helmut Jarausch <jarausch>
Component: [OLD] LibraryAssignee: Luca Barbato <lu_zero>
Status: RESOLVED INVALID    
Severity: normal CC: scarabeus, x11
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Helmut Jarausch 2009-09-15 10:56:26 UTC
Setting 
LDFLAGS=--as-needed
in /etc/make.conf

breaks

x11-drivers/ati-drivers-9.9 

since this packages mangles 
--as-needed
to
-fas-needed
which is unknown to gcc


Reproducible: Always
Comment 1 Enrico Tagliavini 2009-09-15 18:52:02 UTC
It should be LDFLAGS=-Wl,--as-needed

Here it works like a charm. I use --as-needed and other flags since gcc-4.3.2 is stable.
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-09-15 20:40:34 UTC
Indeed, you should use what Enrico put in comment #1 (with quotes, just to be safe).

Cheers