On 09/12/2012 23:06, Jeffrey Walton wrote: > Seems reasonable (otherwise a stack trace is useless). Also, it does > not affect performance. Confer: "How does the gcc -g option affect > performance?" http://gcc.gnu.org/ml/gcc-help/2005-03/msg00032.html.
Correct. But in Gentoo I had to end up writing an explicit guide about it as people (both upstream developers and users) tend to mix up the two things: http://www.gentoo.org/proj/en/qa/backtraces.xml Unfortunately there are a number of packages that do something like (pseudo-autoconf — I know it's broken) AC_ARG_ENABLE([debug], , [CFLAGS="-O0 -g3 -DDEBUG"], [CFLAGS="-O2 -g0 -DNDEBUG"]) which is a pain for us to manage (and we usually end up removing and just handling the debug handling on our side. -- Diego Elio Pettenò — Flameeyes flamee...@flameeyes.eu — http://blog.flameeyes.eu/