Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [PREFIX] Interix _ALL_SOURCE
Date: Tue, 15 Jul 2008 11:39:42
Message-Id: 1216121968.13697.26.camel@sapc154.salomon.at
In Reply to: Re: [gentoo-alt] [PREFIX] Interix _ALL_SOURCE by Fabian Groffen
1 On Tue, 2008-07-15 at 11:36 +0200, Fabian Groffen wrote:
2 > On 15-07-2008 07:55:16 +0200, Markus Duft wrote:
3 > > >
4 > > > On 14-07-2008 16:05:53 +0200, Markus Duft wrote:
5 > > > > Haubi suggested this small enhancement:
6 > > > >
7 > > > > [[ " ${CFLAGS} " != *" -D_ALL_SOURCE "* ]] && .......
8 > > >
9 > > > ok with me, smarter actually ;)
10 > > >
11 > >
12 > > 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.
13 > >
14 > > If you agree, I'll bootstrap a prefix on interix 5.2, and also patch this (and all ebuilds)...
15 >
16 > Hmmm... what do you think about the argument that a user of Prefix GCC
17 > has to set it now for her* own compilation tasks?
18
19 (-;
20 Basically: its her fault to use Windows.
21 But: she's clever and uses Gentoo Prefix.
22 ;-)
23
24 Compared to what Interopsystems provides (set -D_ALL_SOURCE in $CFLAGS
25 shell variable at login), we should have gcc to define _ALL_SOURCE.
26
27 So to find out how many packages are broken _with_ _ALL_SOURCE defined,
28 we can add -D_ALL_SOURCE to C{,XX}FLAGS in profile, and remerge -e
29 world.
30
31 If that's not too many (or less than the number of now-working ones),
32 add it to gcc (or its wrapper, as the first cmdline-arg), so -U still
33 works if necessary.
34
35 /haubi/
36 --
37 Michael Haubenwallner
38 Gentoo on a different level
39
40 --
41 gentoo-alt@l.g.o mailing list

Replies

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