[SCM] lives/master: Enable hardening flags.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Tue Jun 26 09:15:08 UTC 2012


The following commit has been merged in the master branch:
commit b1b1d7fa6d7166b439e936e1fa8e28f8fbfed928
Author: Alessio Treglia <alessio at debian.org>
Date:   Tue Jun 26 11:13:14 2012 +0200

    Enable hardening flags.

diff --git a/debian/control b/debian/control
index ce1b87c..bcdfdca 100644
--- a/debian/control
+++ b/debian/control
@@ -12,6 +12,7 @@ Build-Depends:
  autotools-dev (>= 20100122.1~),
  bison,
  debhelper (>= 7.0.50~),
+ dpkg-dev (>= 1.16.1~),
  frei0r-plugins-dev [!kfreebsd-any !hurd-any !armhf !avr32 !sparc64],
  gettext,
  glee-dev,
diff --git a/debian/rules b/debian/rules
index 40bd4f1..6bad296 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,11 +2,14 @@
 
 export REPACK_SH=$(CURDIR)/debian/repack.sh
 
-LDFLAGS:=
-CFLAGS:=
-
 UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep 'Version:' | sed 's/^Version:\s\(.*\)\(~ds[0-9]*\)-.*/\1/')
 
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+export CFLAGS+=$(CPPFLAGS)
+export CXXFLAGS+=$(CPPFLAGS)
+
 %:
 	dh $@ --parallel --with=autotools_dev,python2
 

-- 
lives packaging



More information about the pkg-multimedia-commits mailing list