[gentoo-user] How can I emerge a program with debugging options?

2007-01-15 Thread qfpvajdy
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

Re: [gentoo-user] How can I emerge a program with debugging options?

2007-01-15 Thread Dirk Heinrichs
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)

Re: [gentoo-user] How can I emerge a program with debugging options?

2007-01-15 Thread Michal 'vorner' Vaner
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,

Re: [gentoo-user] How can I emerge a program with debugging options?

2007-01-15 Thread Pawel Kraszewski
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:

Re: [gentoo-user] How can I emerge a program with debugging options?

2007-01-15 Thread Benno Schulenberg
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'

Re: [gentoo-user] How can I emerge a program with debugging options?

2007-01-15 Thread Iain Buchanan
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