[Build-common-hackers] Bug#202387: autotools.mk: C[XX]FLAGS not passed to configure

Chris Halls Chris Halls <halls@debian.org>, 202387@bugs.debian.org
Sat, 19 Jul 2003 18:06:38 +0200


Package: cdbs
Version: 0.4.4
Severity: normal

CFLAGS and CXXFLAGS need to be passed to configure, instead of (or, at a
minimum, in addition to) being overriden during the make build phase.

The flags need to be passed to configure so that running 'make' in the
sourcedir will build with the same flags as the package is using, and
also in case the configure script does anything special based on the
values of the variables.  

For example, a program that adds certain defines when optimisation is
turned on in CFLAGS, such as -DNDEBUG.   Not a very good example, but I
guess that something like that will end up in a configure script of some
mad upstream somewhere :)

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux shawn 2.4.21-2-686 #1 Sat Jul 5 00:38:35 EST 2003 i686
Locale: LANG=en_GB, LC_CTYPE=de_DE@euro

-- no debconf information