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 1SNmUh-0001B8-K7 for garchives@archives.gentoo.org; Fri, 27 Apr 2012 14:49:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6C5CE080A; Fri, 27 Apr 2012 14:49:44 +0000 (UTC) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 36580E05EC for ; Fri, 27 Apr 2012 14:47:46 +0000 (UTC) Received: by bkcjk13 with SMTP id jk13so627566bkc.40 for ; Fri, 27 Apr 2012 07:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=slSVRO8kpUw9r3eWjWcB/FPmXY3ZHXJOUty7RHz7uAk=; b=wI5abdA/XMFmthUkEsVQ0qm/S1CSYzXte1RGPB8Atd/AL7jPRXLVweI/fKPmcCGKou 9qe3JuHYd6vxvHDy/nxL6+nf0E+2aCxfMwzGebk7RQUdgmhHYvl7lwuXiILkLVJuVK0x bebGJBp4VOGhkwv6MtnG8wQlfm481HvGrN+9qT8rNglMny5T4qUes0mRe7lbizTt0rKJ SIFy07V/pKCvYM/E1Zmu+Bag34lKVlD6EeJw1JgHoc4qb/H4G47BzwOBqLsKLfsD4+zx kCj1X2FTCLRPV216hBoyDSLxb5cD9u3/xnm9uyPe44W8phy1LogPOqmwqiQAZr804/He AYAA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.204.148.80 with SMTP id o16mr4104096bkv.3.1335538066152; Fri, 27 Apr 2012 07:47:46 -0700 (PDT) Received: by 10.204.184.13 with HTTP; Fri, 27 Apr 2012 07:47:46 -0700 (PDT) In-Reply-To: <20120427142812.701bbd62@weird.wonkology.org> References: <20120427142812.701bbd62@weird.wonkology.org> Date: Fri, 27 Apr 2012 10:47:46 -0400 Message-ID: Subject: Re: [gentoo-user] per-package CFLAGS? From: Doug Hunley To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c28685eb-218f-43c3-85bd-37ad62c96e2c X-Archives-Hash: ec348593c3f479787f63ceaedf054fc9 awesome, thanks! Now I don't have to worry about graphite killing R or ppl anymore ;) On Fri, Apr 27, 2012 at 08:28, Alex Schuster wrote: > Doug Hunley writes: > >> Am I understanding the docs correctly in that I can use >> /etc/portage/package.env to set per-package CFLAGS? > > Yes, and it's quite easy. Here is mine: > > app-emulation/virtualbox =C2=A0 =C2=A0 =C2=A0 =C2=A0safecflags.conf j1.co= nf > app-office/libreoffice =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0notmpfs.conf > dev-lang/R =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0j1.conf > games-fps/alienarena =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0notmpfs.con= f > games-fps/worldofpadman =C2=A0 =C2=A0 =C2=A0 =C2=A0 notmpfs.conf > games-puzzle/pingus =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 safecflags.= conf > games-sports/vdrift =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 notmpfs.con= f > mail-client/thunderbird =C2=A0 =C2=A0 =C2=A0 =C2=A0 notmpfs.conf > sys-boot/grub =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 grub.conf > sys-libs/glibc =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0nosandbox.conf > www-client/firefox =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0notmpf= s.conf > > These *.conf files are located in /etc/portage/env/, and they are just > shell scripts sourced by emerge. For example, j1.conf simply has the line > 'MAKEOPTS=3D-j1' in it, this disables parallel makes for some packages > where I had trouble with it. Similarly, notmpfs.conf has > 'PORTAGE_TMPDIR=3D/var/portage/tmp', while my normal PORTAGE_TMPDIR is on > tmpfs. 5G sometimes is not enough for the big packages. grub.conf has > 'export DONT_MOUNT_BOOT=3Dfoo', this disables mounting the /boot director= y > and doing stuff there when emerging it again. I already forgot about this > one. And nosandbox.conf has 'FEATURES=3D-usersandbox', as recent glibc do= es > not build here with this setting. > > Any finally my savecflags.conf: > =C2=A0CFLAGS=3D"-pipe -march=3Damdfam10 -O2" > =C2=A0CXXFLAGS=3D$CFLAGS > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Wonko > --=20 Douglas J Hunley (doug.hunley@gmail.com) Twitter: @hunleyd =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Web: douglasjhunley.com G+: http://goo.gl/sajR3