Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge debug versions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
metric
n00b
n00b


Joined: 06 Apr 2003
Posts: 1

PostPosted: Sun Apr 06, 2003 1:55 pm    Post subject: emerge debug versions Reply with quote

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:
FEATURES="noclean"
DEBUGBUILD="yes"

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:
drwx------
A chmod -R is necessary if you want to debug as a non-root user.

happy debuging,

-metric
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum