Re: [gentoo-user] How can I emerge a program with debugging options?
On Mon, 2007-01-15 at 10:13 +0100, qfpvajdy wrote: > Hello, > > I would like to emerge a program with debugging options CFLAGS="-g" put CFLAGS in /etc/make.conf > and without strip at the end of the build. you can use either nostrip _or_ splitdebug. the first obviously stops stripping, the second strips files, but takes the debug info and puts it in another file in /usr/lib/debug first. This means you get the benefit of smaller executables, but still have debug info. And you can always delete /usr/lib/debug when you've had enough! This is relevant parts from my make.conf: DEBUG="-g" CFLAGS="-O2 -march=pentium4 -pipe ${DEBUG}" CXXFLAGS="${CFLAGS}" FEATURES="fixpackages userpriv usersandbox userfetch splitdebug" This way, I can comment out the DEBUG= line, and I don't get the debug info. see here for more info: http://www.gentoo.org/proj/en/qa/backtraces.xml HTH, -- Iain Buchanan I can just see it now: nomination-terrorism ;-) -- Manoj haha! i nominate manoj. -- seeS -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How can I emerge a program with debugging options?
qfpvajdy wrote: > I would like to emerge a program with debugging options > CFLAGS="-g" and without strip at the end of the build. You could define an alias. # type dbgemerge dbgemerge is aliased to `USE='debug' FEATURES='nostrip -test' CFLAGS='-ggdb -O1 -pipe' CXXFLAGS='-ggdb -O1 -pipe' LDFLAGS='-ggdb -nopie' emerge --oneshot' Benno -- Cetere mi opinias ke ne ĉio tradukenda estas. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How can I emerge a program with debugging options?
Dnia poniedziałek, 15 stycznia 2007 10:13, qfpvajdy napisał: > Hello, > > I would like to emerge a program with debugging options CFLAGS="-g" and > without strip at the end of the build. I know that I could do this: > $ export CFLAGS="-g"; emerge mypackage Take a look at: http://www.gentoo.org/proj/en/qa/backtraces.xml P.S. Pls. correct your signature separator. It should be dash-dash-SPACE-enter. You have just dash-dash-enter. -- Pawel Kraszewski www.kraszewscy.net -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How can I emerge a program with debugging options?
Hello On Mon, Jan 15, 2007 at 10:13:46AM +0100, qfpvajdy wrote: > Does somebody knows how I could do this by an easy way? > I had already the idea to rename the program /usr/bin/strip in > /usr/bin/strip.old, but this is a little ugly! :-) Have a look at man make.conf, there are many nice options, one of them, if I remember correctly, was "nostrip". -- This email was generated by a biological random generator. If you want more random text, just respond to this email. Michal "vorner" Vaner pgpyWfxmj0jQn.pgp Description: PGP signature
Re: [gentoo-user] How can I emerge a program with debugging options?
Am Montag, 15. Januar 2007 10:13 schrieb ext qfpvajdy: > I would like to emerge a program with debugging options CFLAGS="-g" and > without strip at the end of the build. I know that I could do this: > $ export CFLAGS="-g"; emerge mypackage > > But then it strip at the end the binary file (/usr/bin/strip) and I loss > my debugging symbols in the binary file of the package. > > Does somebody knows how I could do this by an easy way? Put FEATURES="nostrip" into /etc/make.conf. Bye... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: [EMAIL PROTECTED] Hambornerstraße 55 | Web: http://www.capgemini.com D-40472 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net pgpAVKPpfReoq.pgp Description: PGP signature
[gentoo-user] How can I emerge a program with debugging options?
Hello, I would like to emerge a program with debugging options CFLAGS="-g" and without strip at the end of the build. I know that I could do this: $ export CFLAGS="-g"; emerge mypackage But then it strip at the end the binary file (/usr/bin/strip) and I loss my debugging symbols in the binary file of the package. Does somebody knows how I could do this by an easy way? I had already the idea to rename the program /usr/bin/strip in /usr/bin/strip.old, but this is a little ugly! :-) -- E-Mail sent with anti-spam site TrashMail.net! Free disposable email addresses: http://www.trashmail.net/ -- gentoo-user@gentoo.org mailing list