Gentoo Archives: gentoo-user

From: Daniel Pielmeier <daniel.pielmeier@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Compile something with debugging information
Date: Tue, 19 Jun 2007 14:38:31
Message-Id: 6142e6140706190732k2aee9855na64ddc07c4e846b4@mail.gmail.com
In Reply to: [gentoo-user] Re: Compile something with debugging information by Alexander Skwar
1 > > To debug this, I'd like to build postfix again, but this time portage
2 > > should not strip the binaries and it should be compiled with debugging
3 > > information compiled in (ie. with -g).
4 > >
5 > > How would I do that?
6
7 There is a good howto which explains building packages with debug
8 information and generating backtraces at
9 http://www.gentoo.org/proj/en/qa/backtraces.xml.
10
11 > FEATURES="nostrip -ccache keeptemp keepwork test noclean" \
12 > CFLAGS="-march=athlon-xp -O0 -pipe -ggdb3" sudo emerge postfix
13 >
14 > This seems to be at least one way to go.
15
16 You can set this in /etc/portage/env/mail-mta/postfix to enable this
17 Features and Cflags only for this specific package.
18
19 Regards Daniel
20 --
21 gentoo-user@g.o mailing list