* [gentoo-user] per-package CFLAGS?
@ 2012-04-27 12:08 Doug Hunley
2012-04-27 12:28 ` Alex Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Doug Hunley @ 2012-04-27 12:08 UTC (permalink / raw
To: gentoo-user
Am I understanding the docs correctly in that I can use
/etc/portage/package.env to set per-package CFLAGS?
--
Douglas J Hunley (doug.hunley@gmail.com)
Twitter: @hunleyd Web:
douglasjhunley.com
G+: http://goo.gl/sajR3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] per-package CFLAGS?
2012-04-27 12:08 [gentoo-user] per-package CFLAGS? Doug Hunley
@ 2012-04-27 12:28 ` Alex Schuster
2012-04-27 14:47 ` Doug Hunley
0 siblings, 1 reply; 3+ messages in thread
From: Alex Schuster @ 2012-04-27 12:28 UTC (permalink / raw
To: gentoo-user
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 safecflags.conf j1.conf
app-office/libreoffice notmpfs.conf
dev-lang/R j1.conf
games-fps/alienarena notmpfs.conf
games-fps/worldofpadman notmpfs.conf
games-puzzle/pingus safecflags.conf
games-sports/vdrift notmpfs.conf
mail-client/thunderbird notmpfs.conf
sys-boot/grub grub.conf
sys-libs/glibc nosandbox.conf
www-client/firefox notmpfs.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=-j1' in it, this disables parallel makes for some packages
where I had trouble with it. Similarly, notmpfs.conf has
'PORTAGE_TMPDIR=/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=foo', this disables mounting the /boot directory
and doing stuff there when emerging it again. I already forgot about this
one. And nosandbox.conf has 'FEATURES=-usersandbox', as recent glibc does
not build here with this setting.
Any finally my savecflags.conf:
CFLAGS="-pipe -march=amdfam10 -O2"
CXXFLAGS=$CFLAGS
Wonko
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] per-package CFLAGS?
2012-04-27 12:28 ` Alex Schuster
@ 2012-04-27 14:47 ` Doug Hunley
0 siblings, 0 replies; 3+ messages in thread
From: Doug Hunley @ 2012-04-27 14:47 UTC (permalink / raw
To: gentoo-user
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 <wonko@wonkology.org> 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 safecflags.conf j1.conf
> app-office/libreoffice notmpfs.conf
> dev-lang/R j1.conf
> games-fps/alienarena notmpfs.conf
> games-fps/worldofpadman notmpfs.conf
> games-puzzle/pingus safecflags.conf
> games-sports/vdrift notmpfs.conf
> mail-client/thunderbird notmpfs.conf
> sys-boot/grub grub.conf
> sys-libs/glibc nosandbox.conf
> www-client/firefox notmpfs.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=-j1' in it, this disables parallel makes for some packages
> where I had trouble with it. Similarly, notmpfs.conf has
> 'PORTAGE_TMPDIR=/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=foo', this disables mounting the /boot directory
> and doing stuff there when emerging it again. I already forgot about this
> one. And nosandbox.conf has 'FEATURES=-usersandbox', as recent glibc does
> not build here with this setting.
>
> Any finally my savecflags.conf:
> CFLAGS="-pipe -march=amdfam10 -O2"
> CXXFLAGS=$CFLAGS
>
> Wonko
>
--
Douglas J Hunley (doug.hunley@gmail.com)
Twitter: @hunleyd Web:
douglasjhunley.com
G+: http://goo.gl/sajR3
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-27 14:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-27 12:08 [gentoo-user] per-package CFLAGS? Doug Hunley
2012-04-27 12:28 ` Alex Schuster
2012-04-27 14:47 ` Doug Hunley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox