Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285074 - x11-drivers/ati-drivers-9.9 mangles the --as-needed LDFLAGS
Summary: x11-drivers/ati-drivers-9.9 mangles the --as-needed LDFLAGS
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 10:56 UTC by Helmut Jarausch
Modified: 2009-09-15 20:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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