[Build-common-hackers] Bug#651964: Bug#651964: Bug#651964: cdbs: class/langcore.mk doesn't set CPPFLAGS and LDFLAGS from dpkg-buildflags

Moritz Mühlenhoff jmm at inutil.org
Sun Mar 4 16:53:55 UTC 2012

reopen 651964

On Wed, Feb 01, 2012 at 01:05:39AM +0100, Jonas Smedegaard wrote:

> > So, please activate these flags as suggested by Simon, otherwise this 
> > causes a lot of additional manual overhead. (Plus, your workaround 
> > doesn't work, see below).


> I'll simplify CDBS to always use new behaviour, and hope it causes no 
> breakage.

This doesn't work with cdbs/0.4.105:

As an example I've rebuild afuse with current cdbs. CPPFLAGS is not set
through dpkg-buildflags. "-D_FORTIFY_SOURCE=2" should be set instead of
an empty value.

make[1]: Entering directory `/home/jmm/scratch/afuse-0.2'
make[1]: F�r das Ziel �update-config� ist nichts zu tun.
make[1]: Leaving directory `/home/jmm/scratch/afuse-0.2'
touch debian/stamp-autotools-files
chmod a+x /home/jmm/scratch/afuse-0.2/./configure
mkdir -p .
cd . &&   CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall" CXXFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall" CPPFLAGS="" LDFLAGS="-Wl,-z,relro" /home/jmm/scratch/afuse-0.2/./configure --build=x86_64-linux-gnu  --prefix=/usr --includedir="\${prefix}/include" --mandir="\${prefix}/share/man" --infodir="\${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var --libexecdir="\${prefix}/lib/afuse" --srcdir=. --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules


More information about the Build-common-hackers mailing list