bug in configure?
Christian Stimming
stimming at tuhh.de
Wed Aug 9 07:19:58 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mark Johnson schrieb:
> $ echo $CFLAGS
> -O2 -march=i486 -mcpu=pentium2
> $ ./configure --prefix=/usr --sysconfdir=/etc --disable-debug
>
> CFLAGS ............... : -O2 -march=i486 -mcpu=pentium2 -g -Wall
> -Wunused -Wmissing-prototypes -Wmissing-declarations
>
> Shouldn't --disable-debug remove the -g flag from the CFLAGS and LDFLAGS?
> "configure --help" lists the option --enable-debug implying that this
> should work.
The current code in configure.in doesn't do what would be expected.
Instead, if --enable-debug=anything is given at all (and --disable-debug
is identical to --enable-debug=no), then in all cases "-g" is added to
CFLAGS. Only if it is not given, nothing is added to CFLAGS.
So for your question you should simply remove the --disable-debug from
your configure line.
To change that behaviour, we would need to check for the $withval in
configure.in:609. Feel free to submit a patch if it bothers you enough :-)
Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBRNnE3mXAi+BfhivFAQJPyAP+LJAna3oIca+6k/qgDQ4a/MgIvLaX5RwG
inOkB0HzSkX/1oTnkGQWiVvnXSX8OmDlUctuAJk26Pj9YJiPhiOTaSPUmE0n+1yC
HDf3Z9rT/wgrZUlmFLks9fNNI8Ni/Ws8jlyyPiWUhYahorR8VsjozIoAvrvODtTA
V2jKJ9V/gj4=
=kmOL
-----END PGP SIGNATURE-----
More information about the gnucash-devel
mailing list