1 |
On 03-10-2009 23:27:41 +0300, Samuli Suominen wrote: |
2 |
> The amount of pkgs in tree with valid code that fails with asneeded is |
3 |
> close to zero. We can use this, |
4 |
> |
5 |
> if use userland_GNU; then |
6 |
> append-ldflags -Wl,--no-as-needed |
7 |
> fi |
8 |
> |
9 |
> logic so it won't cause you troubles. Or the obvious shorter && version |
10 |
> of it. |
11 |
|
12 |
Not really, because the userland is GNU, the compiler too, but the |
13 |
linker is not. We once played with a version of append-ldflags that |
14 |
tested the flag against the linker to see if it would work, but that's |
15 |
expensive as well as allowing real typos/bugs to go unnoticed. |
16 |
|
17 |
We currently do either a CHOST check, or call ld to see if it's GNU for |
18 |
all packages that hardcode -Wl,--{,no-}as-needed usage. |
19 |
|
20 |
|
21 |
-- |
22 |
Fabian Groffen |
23 |
Gentoo on a different level |