Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] new helper: econf_build
Date: Fri, 14 Oct 2011 02:02:06
Message-Id: 201110132201.15852.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] new helper: econf_build by Alec Warner
1 On Thursday 13 October 2011 21:41:02 Alec Warner wrote:
2 > On Thu, Oct 13, 2011 at 4:48 PM, Mike Frysinger wrote:
3 > > i've found myself a few times having to implement logic like so:
4 > > CFLAGS=${BUILD_CFLAGS:--O1 -pipe} \
5 > > CXXFLAGS=${BUILD_CXXFLAGS:--O1 -pipe} \
6 > > CPPFLAGS=${BUILD_CPPFLAGS} \
7 > > LDFLAGS=${BUILD_LDFLAGS} \
8 > > CC=$(tc-getBUILD_CC) \
9 > > LD=$(tc-getBUILD_LD) \
10 > > econf --host=${CBUILD} "$@"
11 >
12 > I'm a newb, are BUILD_* expected to be set by users?
13
14 yes & no. toolchain-funcs is intelligent to setup sane values if need be.
15 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature