2008/5/25 Alan McKinnon <[EMAIL PROTECTED]>: > On Saturday 24 May 2008, Erik Ruotsalainen wrote: > > On Sat, May 24, 2008 at 10:02:50AM +0000, dhk wrote: > > > How can I modify the CFLAGS before emerging a package? I want to > > > add -g2 to the compile of libxml2 so I can step through their > > > functions. If I add -g2 to CFLAGS in make.conf it will do it for > > > all packages which is not what I want. > > > > > > Thanks, > > > > > > Dave > > > -- > > > [email protected] mailing list > > > > Same way as with USE flags, I think. > > > > # CFLAGS="-g2" emerge libxml2 > > This works, but is not recommended. > > Portage will not remember those settings in a way that can be > duplicated, so the next time that package gets remerged (especially as > part of a deep update) it will be recompiled without the custom CFLAGS. > > This is a serious blunder and non-trivial to detect and fix. It violates > the sacrosanct Law Of No Unexpected Side Effects > > Alan is rigth, the best practice is not to declare any environment variable or USE Flag before the emerge sentence, but use the configuration files in "/etc/portage"
> > -- > Alan McKinnon > alan dot mckinnon at gmail dot com > > -- > [email protected] mailing list > > -- En el pasado creímos que se nos acababa el petróleo, pero en realidad lo que se nos acababan eran las IDEAS. Gentoo/* (Linux #455615) 53:04:4e:b5:f9:7e:4a:fb:66:a2:19:12:da:d5:97:f8 8A3A C955 715D D88A 87CD E21F F827 ADD7 F589 B4A4 Sebastian Magri (sebasmagri) <[EMAIL PROTECTED]>

