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 07:09:22
Message-Id: 4E97DFDE.1000000@gentoo.org
In Reply to: [gentoo-dev] new helper: econf_build by Mike Frysinger
1 On 10/14/11 01:48, Mike Frysinger wrote:
2 > i've found myself a few times having to implement logic like so:
3 > CFLAGS=${BUILD_CFLAGS:--O1 -pipe} \
4 > CXXFLAGS=${BUILD_CXXFLAGS:--O1 -pipe} \
5 > CPPFLAGS=${BUILD_CPPFLAGS} \
6 > LDFLAGS=${BUILD_LDFLAGS} \
7 > CC=$(tc-getBUILD_CC) \
8 > LD=$(tc-getBUILD_LD) \
9 > econf --host=${CBUILD} "$@"
10 >
11 <snip>
12 > so rather than continuing to copy & paste this logic everywhere, i'm going to
13 > add it to toolchain-funcs.eclass as "econf_build". any feedback before i do ?
14
15 Eventually not to stick to 'econf', but provide a more generic one,
16 so it is useable like this (in lack of a better name):
17
18 run_with_build_env econf --host=${CBUILD} ...
19
20 /haubi/
21 --
22 Michael Haubenwallner
23 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-dev] new helper: econf_build Mike Frysinger <vapier@g.o>