1 |
Ciaran McCreesh wrote: |
2 |
> On Sun, 27 Jul 2008 00:00:55 +0200 |
3 |
> Carsten Lohrke <carlo@g.o> wrote: |
4 |
>> Afaik it has always been the way that *sane* LDFLAGS are to be |
5 |
>> respected, but exceptions exist of course and it's up to the |
6 |
>> maintainer to mangle or clear your LDFLAGS, if deemed necessary. I'd |
7 |
>> like to know, why Mark asked to bring this question up here. |
8 |
>> Shouldn't this be common sense!? |
9 |
> |
10 |
> The way it is currently: Packages ignoring CFLAGS without a *very* good |
11 |
> reason (and 'upstream thinks they know better' is rarely a very good |
12 |
> reason, especially when upstream supposedly knowing better leads to v7 |
13 |
> builds on v9 systems) need to be fixed. Packages ignoring LDFLAGS can |
14 |
> be fixed if the maintainer feels like it, but there's no requirement to |
15 |
> do so and filing bugs about it is frowned upon. |
16 |
> |
17 |
> Until recently, LDFLAGS have been put in the "anyone using these is a |
18 |
> ricer" category. Unfortunately, the misguided promotion of 'as-needed' |
19 |
> despite its massive design flaws has lead people to think that setting |
20 |
> LDFLAGS is in some way useful or cool. I expect next someone will try |
21 |
> to find a way to force 'ASFLAGS' onto everyone... |
22 |
|
23 |
This is totally irrelevant though. If I have --as-needed in my LDFLAGS |
24 |
(I do) I still consider it a bug if a package does not honor it. So |
25 |
what I'm doing is fixing the ebuild (*if* the ebuild does not mention a |
26 |
reason of not honoring LDFLAGS of course) and submit it in bugzilla. I |
27 |
don't know if the maintainers are getting annoying by this. They |
28 |
shouldn't. If some LDFLAGS turn out to break a package in some way |
29 |
doesn't mean that it's OK for the package to ignore LDFLAGS altogether. |
30 |
If I have CFLAGS="-O999999 -fsuper-mega-fast-math |
31 |
-enable-leet-broken-experimental-optimize" doesn't mean the package |
32 |
should ignore CFLAGS :P |
33 |
|
34 |
(As for --as-needed, it's the same as -O3 in CFLAGS; if a package turns |
35 |
out to break, an ebuild *could* explicitly filter out -O3, but that's |
36 |
not really a priority. In the end, if the user chooses ricer-flags and |
37 |
breaks his system, he can blame himself. If he explicitly wants to |
38 |
shoot himself in the foot, the ebuild should allow him to do so. Any |
39 |
effort spent to protect the ricers from themselves is *wasted* effort |
40 |
better spent somewhere else. |
41 |
|
42 |
Not that I have ever seen a package that breaks with --as-needed though. |
43 |
Of course that's just me.) |