From: "Bo Ørsted Andresen" <bo.andresen@zlin.dk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Compile something with debugging information
Date: Wed, 20 Jun 2007 12:22:07 +0200 [thread overview]
Message-ID: <200706201222.10166.bo.andresen@zlin.dk> (raw)
In-Reply-To: <5241923.GsZ9TRYdz0@kn.gn.rtr.message-center.info>
[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]
On Tuesday 19 June 2007 13:56:19 Alexander Skwar wrote:
> > To debug this, I'd like to build postfix again, but this time portage
> > should not strip the binaries and it should be compiled with debugging
> > information compiled in (ie. with -g).
> >
> > How would I do that?
>
> FEATURES="nostrip -ccache keeptemp keepwork test noclean" \
> CFLAGS="-march=athlon-xp -O0 -pipe -ggdb3" sudo emerge postfix
>
> This seems to be at least one way to go.
Why keeptemp keepwork noclean? keeptemp and keepwork are implied by noclean
anyway so it's quite redundant. If you just want the source kept have a look
at FEATURES=installsources in `man 5 make.conf`. Also have a look at
FEATURES=splitdebug as already mentioned. test is unrelated but might of
course be useful.
As mentioned by Daniel you can set FEATURES and CFLAGS on a per package basis
in /etc/portage/env/$CATEGORY/$PN. Alternatively you can set it in a
case; ...; esac construct in /etc/portage/bashrc (for multiple packages at
once). Do note that variables here don't automatically stack so you need to
either set everything you want or include $CFLAGS and $FEATURES.
--
Bo Andresen
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-06-20 10:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-19 11:37 [gentoo-user] Compile something with debugging information Alexander Skwar
2007-06-19 11:56 ` [gentoo-user] " Alexander Skwar
2007-06-19 14:32 ` Daniel Pielmeier
2007-06-19 23:48 ` Iain Buchanan
2007-06-20 10:22 ` Bo Ørsted Andresen [this message]
2007-06-19 12:27 ` [gentoo-user] " Alan McKinnon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200706201222.10166.bo.andresen@zlin.dk \
--to=bo.andresen@zlin.dk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox