From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Sf0tg-0005AV-Rt for garchives@archives.gentoo.org; Thu, 14 Jun 2012 03:39:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC594E0486; Thu, 14 Jun 2012 03:38:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8CAFDE0486 for ; Thu, 14 Jun 2012 03:38:53 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C2A221B400B for ; Thu, 14 Jun 2012 03:38:52 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id 83E812004B; Thu, 14 Jun 2012 03:38:51 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain-funcs.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: toolchain-funcs.eclass X-VCS-Directories: eclass X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: <20120614033851.83E812004B@flycatcher.gentoo.org> Date: Thu, 14 Jun 2012 03:38:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 4955af93-886b-4582-bd32-dbae97bc7b61 X-Archives-Hash: b4fe77a376ccab8b42c572d7f5e38975 vapier 12/06/14 03:38:51 Modified: toolchain-funcs.eclass Log: unify build env var setup a bit so other packages can use it #391363 Revision Changes Path 1.112 eclass/toolchain-funcs.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain-f= uncs.eclass?rev=3D1.112&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain-f= uncs.eclass?rev=3D1.112&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain-f= uncs.eclass?r1=3D1.111&r2=3D1.112 Index: toolchain-funcs.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v retrieving revision 1.111 retrieving revision 1.112 diff -u -r1.111 -r1.112 --- toolchain-funcs.eclass 9 Jun 2012 06:56:14 -0000 1.111 +++ toolchain-funcs.eclass 14 Jun 2012 03:38:51 -0000 1.112 @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.111= 2012/06/09 06:56:14 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.112= 2012/06/14 03:38:51 vapier Exp $ =20 # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -215,6 +215,19 @@ return $([[ ${host} =3D=3D *-mint* ]]) } =20 +# @FUNCTION: tc-export_build_env +# @USAGE: [compiler variables] +# @DESCRIPTION: +# Export common build related compiler settings. +tc-export_build_env() { + tc-export "$@" + : ${BUILD_CFLAGS:=3D-O1 -pipe} + : ${BUILD_CXXFLAGS:=3D-O1 -pipe} + : ${BUILD_CPPFLAGS:=3D} + : ${BUILD_LDFLAGS:=3D} + export BUILD_{C,CXX,CPP,LD}FLAGS +} + # @FUNCTION: tc-env_build # @USAGE: [command args] # @INTERNAL @@ -224,8 +237,9 @@ # all of the semi-[non-]standard env vars like $BUILD_CC which often # the target build system does not check. tc-env_build() { - CFLAGS=3D${BUILD_CFLAGS:--O1 -pipe} \ - CXXFLAGS=3D${BUILD_CXXFLAGS:--O1 -pipe} \ + tc-export_build_env + CFLAGS=3D${BUILD_CFLAGS} \ + CXXFLAGS=3D${BUILD_CXXFLAGS} \ CPPFLAGS=3D${BUILD_CPPFLAGS} \ LDFLAGS=3D${BUILD_LDFLAGS} \ AR=3D$(tc-getBUILD_AR) \