From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IcsOq-0004l4-J7 for garchives@archives.gentoo.org; Wed, 03 Oct 2007 00:47:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l930bLhG006627; Wed, 3 Oct 2007 00:37:21 GMT Received: from mail.netspace.net.au (mail-out4.netspace.net.au [203.10.110.77]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l930WvcG001592 for ; Wed, 3 Oct 2007 00:32:58 GMT Received: from [172.16.0.52] (ppp246-231.static.internode.on.net [203.122.246.231]) by mail.netspace.net.au (Postfix) with ESMTP id 69D62379B8E for ; Wed, 3 Oct 2007 10:32:57 +1000 (EST) Subject: Re: [gentoo-user] per-ebuild compil options From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <20071002095650.5b09a58d@zaphod.digimed.co.uk> References: <1191299650.8586.5.camel@orpheus> <20071002095650.5b09a58d@zaphod.digimed.co.uk> Content-Type: text/plain Date: Wed, 03 Oct 2007 10:08:42 +0930 Message-Id: <1191371922.8586.34.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 615bee38-83f7-4414-80ad-58640a653e37 X-Archives-Hash: efa6752dd8cceb831bcf4722af01d5e5 On Tue, 2007-10-02 at 09:56 +0100, Neil Bothwick wrote: > On Tue, 02 Oct 2007 14:04:10 +0930, Iain Buchanan wrote: [snip] > > eg. I would always want to build glib and glibc with nostrip in the > > FEATURES, and -ggdb in the compile options, but all other ebuilds would > > be as normal. > > mkdir -p /etc/portage/env.d/sys-devel > echo 'FEATURES="blah nostrip"' >/etc/portage/env.d/sys-devel/gcc > echo 'CFLAGS="blah -ggdb"' >>etc/portage/env.d/sys-devel/gcc > etc. hey that looks cool... except that it didn't work! I should be doing this to dev-libs/glib and sys-libs/glibc right? $ cat /etc/portage/env.d/dev-libs/glib FEATURES="${FEATURES} nostrip" CFLAGS="${CFLAGS} -ggdb" $ sudo emerge -va1 glib ... $ file /usr/lib/libglib-2.0.so.0.1400.1 /usr/lib/libglib-2.0.so.0.1400.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped it now says stripped, whereas last time when I specified FEATURES on the command line before emerge, it came out as not stripped... I also tried this: $ cat /etc/portage/env.d/dev-libs/glib FEATURES="fixpackages userpriv usersandbox userfetch nostrip" CFLAGS="-O2 -march=pentium4 -pipe -ggdb" CXXFLAGS="-O2 -march=pentium4 -pipe -ggdb" and they still end up stripped... any ideas why? thanks! -- Iain Buchanan There's no such thing as a free lunch. -- Milton Friendman -- gentoo-user@gentoo.org mailing list