X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Frules;h=d3f0854748ce31f1310896623b42f7c580099931;hb=refs%2Ftags%2Fdebian-1.0.0-1;hp=477eb79a6c4c56d9015360d3356fd0455eb77008;hpb=17965794138be7d1c619fd179c133878f704f4a7;p=wdq2wav.git diff --git a/debian/rules b/debian/rules index 477eb79..d3f0854 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,15 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif +export DEB_BUILD_HARDENING=1 +export DPKG_EXPORT_BUILDFLAGS=1 +export DEB_BUILD_MAINT_OPTIONS="hardening=+all" +CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) +CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) +LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) + + configure: configure-stamp configure-stamp: dh_testdir @@ -37,7 +46,7 @@ install: build dh_prep dh_installdirs DPKG_EXPORT_BUILDFLAGS=1 - env DEB_BUILD_MAINT_OPTIONS="hardening=+all" DPKG_EXPORT_BUILDFLAGS=1 CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" $(MAKE) + $(MAKE) dh_install wdq2wav usr/bin binary-indep: