Gentoo Archives: gentoo-alt

From: Markus Duft <mduft@g.o>
To: gentoo-alt@l.g.o
Subject: RE: [gentoo-alt] [PREFIX] Interix _ALL_SOURCE
Date: Mon, 14 Jul 2008 14:11:40
Message-Id: 01e801c8e5ba$bac57680$30506380$@org
In Reply to: Re: [gentoo-alt] [PREFIX] Interix _ALL_SOURCE by Fabian Groffen
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

Replies

Subject Author
Re: [gentoo-alt] [PREFIX] Interix _ALL_SOURCE Fabian Groffen <grobian@g.o>