From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15264 invoked from network); 9 Sep 2004 03:43:13 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 9 Sep 2004 03:43:13 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C5Fq5-0003tA-CV for arch-gentoo-dev@lists.gentoo.org; Thu, 09 Sep 2004 03:43:13 +0000 Received: (qmail 5115 invoked by uid 89); 9 Sep 2004 03:43:12 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 16168 invoked from network); 9 Sep 2004 03:43:12 +0000 From: Ned Ludd Reply-To: solar@gentoo.org To: "Robin H. Johnson" Cc: Gentoo Developers In-Reply-To: <20040909022643.GE6455@curie-int.orbis-terrarum.net> References: <33333.10.0.0.51.1094638559.squirrel@10.0.0.51> <413FA8B7.8010108@gentoo.org> <413FB713.3030404@gentoo.org> <20040909022643.GE6455@curie-int.orbis-terrarum.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-C1k4sgkrHUmzrOx8UnZN" Organization: Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer Message-Id: <1094701375.9661.610.camel@simple> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 08 Sep 2004 23:42:56 -0400 Subject: Re: [gentoo-dev] per package cflags (was Re: Do we want optimal performance?) X-Archives-Salt: 42a3c000-6560-49d1-9e87-7264e8e5a3ae X-Archives-Hash: 63247f524cd924edfea1508be5381391 --=-C1k4sgkrHUmzrOx8UnZN Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-09-08 at 22:26, Robin H. Johnson wrote: > On Wed, Sep 08, 2004 at 09:51:15PM -0400, Travis Tilley wrote: > > Daniel Goller wrote: > > >although i am against overly tweaking CFLAGS, someone suggested=20 > > >something that might be more sane to ask for: > > > > > >/etc/portage/packages.cflags > > > > > >an easy way to maintain your cflags you worked so hard for to obtain,=20 > > >you can trade them in the forums or ebay and then append to your file,= =20 > > >not much work to implement in my eyes, and all the testing work is don= e=20 > > >by those who want it > > mkdir /etc/portage and copy this file there (MUCH thanks to solar for=20 > > writing this. he like... kicks ass an stuff). it implements an=20 > > /etc/portage/package.cflags without needing to patch portage. i think=20 > > this might require portage 2.0.51_pre... no idea, i havent used 2.0.50=20 > > in a while. > [snip] > Could this be generalized to do /etc/portage/package.env like somebody > else asked for? >=20 > And then simply put a CFLAGS line in the file referenced by package.env, > as it seems that it really would belong there. I played with that idea for a few mins, but unfortunately I found no easy way in bash to deal with the quotes. Assuming this syntax. sys-apps/paxctl CFLAGS=3D"-Os -fomit-frame-pointer"=20 sys-devel/gdb CFLAGS=3D"-O2 -g3" app-misc/beep FEATURES=3D"sfperms sandbox" LDFLAGS=3D"-Wl,-z,now -Wl,-z,relro" dev-libs/openssl CFLAGS=3D"-O3 -fno-omit-frame-pointer -m32" .. Maybe somebody else is motivated to do it from the basic idea. I gave up and settled for the easy way out of package.cflags package.ldflags here locally. --=20 Ned Ludd Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer --=-C1k4sgkrHUmzrOx8UnZN Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBP9E/94CCfB4KcwwRAn7ZAJ9vOZ3CL8af0DXUIKsEVd3z3jHCFQCgvqgt oP2sOPHji/IfqEDpC2qnym8= =gZPi -----END PGP SIGNATURE----- --=-C1k4sgkrHUmzrOx8UnZN--