Joined: 06 Apr 2003
|Posted: Sun Apr 06, 2003 1:55 pm Post subject: emerge debug versions
|Here is how to emerge ebuild's and be able to debug them. This should be possible at installation time on all packages, but there are a few packages that do not compile.
I was thinking a -g3 in /etc/make.conf for CFLAGS would do the trick, but the following are necessary also:
The noclean is to keep ebuild from deleting the source tree after merging, and DEBUGBUILD is to keep ebuild from 'strip'ing the executables of their debuging symbols. Watch your hd space.
/var/tmp/portage/$package/work is set to mode:
A chmod -R is necessary if you want to debug as a non-root user.