public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Haubenwallner <haubi@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] new helper: econf_build
Date: Fri, 14 Oct 2011 09:08:14 +0200	[thread overview]
Message-ID: <4E97DFDE.1000000@gentoo.org> (raw)
In-Reply-To: <201110131948.00897.vapier@gentoo.org>


On 10/14/11 01:48, Mike Frysinger wrote:
> i've found myself a few times having to implement logic like so:
> 	CFLAGS=${BUILD_CFLAGS:--O1 -pipe} \
> 	CXXFLAGS=${BUILD_CXXFLAGS:--O1 -pipe} \
> 	CPPFLAGS=${BUILD_CPPFLAGS} \
> 	LDFLAGS=${BUILD_LDFLAGS} \
> 	CC=$(tc-getBUILD_CC) \
> 	LD=$(tc-getBUILD_LD) \
> 	econf --host=${CBUILD} "$@"
> 
<snip>
> so rather than continuing to copy & paste this logic everywhere, i'm going to 
> add it to toolchain-funcs.eclass as "econf_build".  any feedback before i do ?

Eventually not to stick to 'econf', but provide a more generic one,
so it is useable like this (in lack of a better name):

run_with_build_env econf --host=${CBUILD} ...

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



  parent reply	other threads:[~2011-10-14  7:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13 23:48 [gentoo-dev] new helper: econf_build Mike Frysinger
2011-10-14  1:41 ` Alec Warner
2011-10-14  2:01   ` Mike Frysinger
2011-10-14  7:08 ` Michael Haubenwallner [this message]
2011-10-14 15:45   ` Mike Frysinger
2011-10-14 15:53     ` Michael Haubenwallner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E97DFDE.1000000@gentoo.org \
    --to=haubi@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox