On Saturday 21 January 2006 00:25, Robin H. Johnson wrote: > On Fri, Jan 20, 2006 at 07:10:02AM -0500, Mike Frysinger wrote: > > that depends, does your code actually have things like > > #ifdef DEBUG > > <debug stuff> > > #endif > > And likewise your code should NOT have some logic like the following in > it's build system. > if(debug mode) > ignore user cflags and use our own cracked out cflags > > I've seen an upstream configure script where if you tell it you want > debug mode, the only thing it does is force CFLAGS to '-O -march=i386' > and not strip the binaries itself - this of course failed dismally when > you tried to enable debugging on non-x86 platforms.
Actually kde (and as such most kde apps) does all kinds of awkward stuff in it's configure script too with respect to adding the "--enable-debug" flag. Although it mostly involves making the compiler extremely noisy, and forcing in "-g" flags. Paul -- Paul de Vrieze Gentoo Developer Mail: [EMAIL PROTECTED] Homepage: http://www.devrieze.net
pgpSbjr63bzpH.pgp
Description: PGP signature