Gentoo Archives: gentoo-dev

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] new helper: econf_build
Date: Fri, 14 Oct 2011 15:54:14
Message-Id: 4E985AE1.6060508@gentoo.org
In Reply to: Re: [gentoo-dev] new helper: econf_build by Mike Frysinger
1 On 10/14/11 17:45, Mike Frysinger wrote:
2 > On Friday 14 October 2011 03:08:14 Michael Haubenwallner wrote:
3 >> On 10/14/11 01:48, Mike Frysinger wrote:
4 >>> i've found myself a few times having to implement logic like so:
5 >>> CFLAGS=${BUILD_CFLAGS:--O1 -pipe} \
6 >>> CXXFLAGS=${BUILD_CXXFLAGS:--O1 -pipe} \
7 >>> CPPFLAGS=${BUILD_CPPFLAGS} \
8 >>> LDFLAGS=${BUILD_LDFLAGS} \
9 >>> CC=$(tc-getBUILD_CC) \
10 >>> LD=$(tc-getBUILD_LD) \
11 >>> econf --host=${CBUILD} "$@"
12 >>
13 >> <snip>
14
15 > i'll probably implement as an @INTERNAL:
16 > tc-env_build() { ... }
17 >
18 > then define econf_build on top of that as an exported API. then let's see what
19 > grows organically beyond.
20
21 Fine with me.
22
23 /haubi/
24 --
25 Michael Haubenwallner
26 Gentoo on a different level