On Sun, 24 Sep 2006 11:47:21 +0000 Peter Humphrey <[EMAIL PROTECTED]> wrote:
> Is there a way to specify CFLAGS on the command line in such a way as > to negate (unset) those that are set in /etc/make.conf? I have > -combine and -ftree-pre in make.conf, and while emerge -e world is > running it fails some packages by not recognising those two. When > that happens I want to emerge --resume --skipfirst so as not to lose > my place in the world emerge, and in another terminal emerge the ones > that have failed. CFLAGS=<set of flags you want> emerge --oneshot <package> ought to do the trick - it should override the make.conf setting. You can do the same with FEATURES. Aside from that, what you're really after is per-package CFLAGS (or more generally, per-package FEATURES) which is a long-standing portage feature request. You can do it via a bashrc script (in /etc/portage/bashrc) although it's not 100% - bashrc scripts are not sourced in all phases of emerge (in particular, fetch), although they are for the ones you're most likely to care about. -- Kevin F. Quinn
signature.asc
Description: PGP signature
