On 1/10/2011 1:11 PM, Nikos Chantziaras wrote:
> Is there a way to enable debugging symbols only for some packages? I
> need to do that for about 15 packages. Currently, all I can do is edit
> make.conf all the time when emerging one of those and add "-g" to CFLAGS
> and "splitdebug" to FEATURES. But I *always* forget about it the first
> time, ending up building twice.
I think you can drop a file in /etc/portage/env for these packages to
change the variables, something like:
/etc/portage/env/sys-apps/portage/bashrc:
FEATURES="${FEATURES} splitdebug"
CFLAGS="${CFLAGS} -g"