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