[SCM] pd-unauthorized/master: Enabled hardening

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Wed Jun 3 19:09:40 UTC 2015


The following commit has been merged in the master branch:
commit b93d776ae2d3860ca30f5ceeb3404a2952ac2745
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Wed Jun 3 20:18:02 2015 +0200

    Enabled hardening

diff --git a/debian/rules b/debian/rules
index 919b14d..6c23941 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,9 +21,19 @@ LIBRARY_NAME = unauthorized
 PACKAGE = pd-$(LIBRARY_NAME)
 pkglibdir = /usr/lib/pd/extra
 
+## use hardening flags
+DPKG_EXPORT_BUILDFLAGS = 1
+export DEB_BUILD_MAINT_OPTIONS
+include /usr/share/dpkg/buildflags.mk
+
 %:
 	dh $@ --buildsystem=makefile
 
+override_dh_auto_build:
+	dh_auto_build -- \
+		CFLAGS="$(CFLAGS) $(CPPFLAGS) -I/usr/include/pd" \
+		LDFLAGS="$(LDFLAGS)"
+
 override_dh_auto_install:
 	dh_auto_install -- prefix=/usr pkglibdir=$(pkglibdir)
 # replace license file with link to the Debian license file

-- 
pd-unauthorized packaging



More information about the pkg-multimedia-commits mailing list