1 |
> |
2 |
> On 14-07-2008 16:05:53 +0200, Markus Duft wrote: |
3 |
> > Haubi suggested this small enhancement: |
4 |
> > |
5 |
> > [[ " ${CFLAGS} " != *" -D_ALL_SOURCE "* ]] && ....... |
6 |
> |
7 |
> ok with me, smarter actually ;) |
8 |
> |
9 |
|
10 |
Hm. Thinking about it, i guess i like this one better than defining _ALL_SOURCE inside gcc or the wrapper. Using strip-flags in ebuilds seems more readable, than append-flags -U_ALL_SOURCE... I think this is the way we should go. |
11 |
|
12 |
If you agree, I'll bootstrap a prefix on interix 5.2, and also patch this (and all ebuilds)... |
13 |
|
14 |
Cheers, Markus |
15 |
|
16 |
> > Another thought from haubi: |
17 |
> > |
18 |
> > What if we just patch gcc to define _ALL_SOURCE as built-in. if we |
19 |
> > require it to be undefined, we can still use -U on the command line, |
20 |
> > right? |
21 |
> |
22 |
> That last thing is a requirement of course (hence I put the define |
23 |
> first |
24 |
> thing, so it can be overridden). |
25 |
> |
26 |
> Further thoughts include: |
27 |
> - messing with gcc in general is no fun, alternative is the wrapper, |
28 |
> but could do it in the gcc spec language too, I guess |
29 |
> - how about the bootstrap phase, is setting -D_ALL_SOURCE easy there (I |
30 |
> think for my method it is) |
31 |
> - patched gcc (invocation) is nice since we always did all the work to |
32 |
> have a working compiler setup in/with Prefix without having to do |
33 |
> anything special (think of library paths to Prefix' libs) |
34 |
> |
35 |
> Looking at the random thoughts above, I guess it means haubi is going |
36 |
> to |
37 |
> fix it ;) |
38 |
> |
39 |
> |
40 |
> -- |
41 |
> Fabian Groffen |
42 |
> Gentoo on a different level |
43 |
> -- |
44 |
> gentoo-alt@l.g.o mailing list |
45 |
|
46 |
|
47 |
-- |
48 |
gentoo-alt@l.g.o mailing list |