severity 653916 important
thanks

Since this is affecting the enable hardening release goal, I'm setting
it's severity to important. Please change it if appropriate. I'm
looking forward to fix this before Wheezy, since some maintainers may
not be aware of such issue when they are activating hardening builds.

As a workaround, maintainers of CMake powered packages may inject
$(CPPFLAGS) to CFLAGS and CXXFLAGS to make it work at the moment. Here
are detailed instructions:

1) If you are calling dpkg-buildflags directly in debian/rules, then
it should be like this:
CFLAGS=$(shell  dpkg-buildflags --get CFLAGS) $(shell  dpkg-buildflags
--get CPPFLAGS)
CXXFLAGS=$(shell  dpkg-buildflags --get CFLAGS) $(shell
dpkg-buildflags --get CPPFLAGS)
LDFLAGS=$(shell  dpkg-buildflags --get LDFLAGS)

2) If you are using "include /usr/share/dpkg/default.mk", then it
should be like this:
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)

3) If you are using dh compat 9, which enables hardening by default,
then addiing following two lines is sufficient:
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)


-- 
Regards,
Aron Xu



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to