1 |
> |
2 |
> How about this patch? |
3 |
> |
4 |
> Index: profile.bashrc |
5 |
> =================================================================== |
6 |
> --- profile.bashrc (revision 27541) |
7 |
> +++ profile.bashrc (working copy) |
8 |
> @@ -1,3 +1,8 @@ |
9 |
> +# One basically always wants -D_ALL_SOURCE, it's some stupid |
10 |
> restriction |
11 |
> +# to hide useful stuff |
12 |
> +[[ ${CFLAGS} != *"-D_ALL_SOURCE"* ]] && CFLAGS="-D_ALL_SOURCE |
13 |
> ${CFLAGS}" |
14 |
> +[[ ${CXXFLAGS} != *"-D_ALL_SOURCE"* ]] && CXXFLAGS="-D_ALL_SOURCE |
15 |
> ${CXXFLAGS}" |
16 |
> + |
17 |
|
18 |
Haubi suggested this small enhancement: |
19 |
|
20 |
[[ " ${CFLAGS} " != *" -D_ALL_SOURCE "* ]] && ....... |
21 |
|
22 |
Another thought from haubi: |
23 |
|
24 |
What if we just patch gcc to define _ALL_SOURCE as built-in. if we require it to be undefined, we can still use -U on the command line, right? |
25 |
|
26 |
Cheers, Markus |
27 |
|
28 |
> # On interix, binary files (executables, shared libraries) in use |
29 |
> # cannot be replaced during merge. |
30 |
> # But it is possible to rename them and remove lateron when they are |
31 |
> |
32 |
|
33 |
-- |
34 |
gentoo-alt@l.g.o mailing list |