Gentoo Archives: gentoo-user

From: Doug Hunley <doug.hunley@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] per-package CFLAGS?
Date: Fri, 27 Apr 2012 14:49:59
Message-Id: CALxYTP4GrqEqA+asifHGdu_16eBbRiBGc-16VzcXdxjjygeV3w@mail.gmail.com
In Reply to: Re: [gentoo-user] per-package CFLAGS? by Alex Schuster
1 awesome, thanks!
2
3 Now I don't have to worry about graphite killing R or ppl anymore ;)
4
5 On Fri, Apr 27, 2012 at 08:28, Alex Schuster <wonko@×××××××××.org> wrote:
6 > Doug Hunley writes:
7 >
8 >> Am I understanding the docs correctly in that I can use
9 >> /etc/portage/package.env to set per-package CFLAGS?
10 >
11 > Yes, and it's quite easy. Here is mine:
12 >
13 > app-emulation/virtualbox        safecflags.conf j1.conf
14 > app-office/libreoffice          notmpfs.conf
15 > dev-lang/R                      j1.conf
16 > games-fps/alienarena            notmpfs.conf
17 > games-fps/worldofpadman         notmpfs.conf
18 > games-puzzle/pingus             safecflags.conf
19 > games-sports/vdrift             notmpfs.conf
20 > mail-client/thunderbird         notmpfs.conf
21 > sys-boot/grub                   grub.conf
22 > sys-libs/glibc                  nosandbox.conf
23 > www-client/firefox              notmpfs.conf
24 >
25 > These *.conf files are located in /etc/portage/env/, and they are just
26 > shell scripts sourced by emerge. For example, j1.conf simply has the line
27 > 'MAKEOPTS=-j1' in it, this disables parallel makes for some packages
28 > where I had trouble with it. Similarly, notmpfs.conf has
29 > 'PORTAGE_TMPDIR=/var/portage/tmp', while my normal PORTAGE_TMPDIR is on
30 > tmpfs. 5G sometimes is not enough for the big packages. grub.conf has
31 > 'export DONT_MOUNT_BOOT=foo', this disables mounting the /boot directory
32 > and doing stuff there when emerging it again. I already forgot about this
33 > one. And nosandbox.conf has 'FEATURES=-usersandbox', as recent glibc does
34 > not build here with this setting.
35 >
36 > Any finally my savecflags.conf:
37 >  CFLAGS="-pipe -march=amdfam10 -O2"
38 >  CXXFLAGS=$CFLAGS
39 >
40 >        Wonko
41 >
42
43
44
45 --
46 Douglas J Hunley (doug.hunley@×××××.com)
47 Twitter: @hunleyd                                               Web:
48 douglasjhunley.com
49 G+: http://goo.gl/sajR3