[SCM] pd-bsaylor/master: Enabled hardening

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Mon Feb 22 19:26:47 UTC 2016


The following commit has been merged in the master branch:
commit d6628f0d55718041a716591be04beb013a929c63
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Mon Feb 22 20:12:17 2016 +0100

    Enabled hardening

diff --git a/debian/rules b/debian/rules
index aaf2ffe..e396b7b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,9 +4,18 @@ LIBRARY_NAME = bsaylor
 PACKAGE = pd-$(LIBRARY_NAME)
 pkglibdir = /usr/lib/pd/extra
 
+## enable hardening
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
 %:
 	dh $@ --buildsystem=makefile
 
+override_dh_auto_build:
+	dh_auto_build -- \
+                OPT_CFLAGS="$(CFLAGS) $(CPPFLAGS) -I/usr/include/pd" \
+                LIBS="$(LDFLAGS) -lm -lc"
+
 override_dh_auto_install:
 	dh_auto_install -- prefix=/usr pkglibdir=$(pkglibdir)
 # replace license file with link to the Debian license file

-- 
pd-bsaylor packaging



More information about the pkg-multimedia-commits mailing list