On Tue, 2008-07-15 at 11:36 +0200, Fabian Groffen wrote:
> On 15-07-2008 07:55:16 +0200, Markus Duft wrote:
> > > 
> > > On 14-07-2008 16:05:53 +0200, Markus Duft wrote:
> > > > Haubi suggested this small enhancement:
> > > >
> > > > [[ " ${CFLAGS} " != *" -D_ALL_SOURCE "* ]] && .......
> > > 
> > > ok with me, smarter actually ;)
> > > 
> > 
> > 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.
> > 
> > If you agree, I'll bootstrap a prefix on interix 5.2, and also patch this 
> > (and all ebuilds)...
> 
> Hmmm... what do you think about the argument that a user of Prefix GCC
> has to set it now for her* own compilation tasks?

(-;
Basically: its her fault to use Windows.
But: she's clever and uses Gentoo Prefix.
;-)

Compared to what Interopsystems provides (set -D_ALL_SOURCE in $CFLAGS
shell variable at login), we should have gcc to define _ALL_SOURCE.

So to find out how many packages are broken _with_ _ALL_SOURCE defined,
we can add -D_ALL_SOURCE to C{,XX}FLAGS in profile, and remerge -e
world.

If that's not too many (or less than the number of now-working ones),
add it to gcc (or its wrapper, as the first cmdline-arg), so -U still
works if necessary.

/haubi/
-- 
Michael Haubenwallner
Gentoo on a different level

-- 
gentoo-alt@lists.gentoo.org mailing list

Reply via email to