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 <iaindb at netspace dot net dot au> I can just see it now: nomination-terrorism ;-) -- Manoj haha! i nominate manoj. -- seeS -- gentoo-user@gentoo.org mailing list