summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@debian.org>2018-03-06 19:34:51 -0500
committerGravatar Benjamin Barenblat <bbaren@debian.org>2018-03-06 19:34:51 -0500
commit0e1f6d65bec111228b67bab7eddbb173aab2a319 (patch)
tree36a9cb8093ce6e03d19699507669ecbdc31708ab /debian/patches
parent3f0728b932904985b703b33bd5c936ea96cf15a0 (diff)
Package xcwd
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/harden.diff15
-rw-r--r--debian/patches/series1
2 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/harden.diff b/debian/patches/harden.diff
new file mode 100644
index 0000000..a66150b
--- /dev/null
+++ b/debian/patches/harden.diff
@@ -0,0 +1,15 @@
+From: Benjamin Barenblat <bbaren@debian.org>
+Subject: Harden build
+Forwarded: not-needed
+--- a/Makefile
++++ b/Makefile
+@@ -7,6 +7,9 @@
+ UNAME:=$(shell uname)
+ O=${CFILES:.c=.o}
+
++CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS)
++LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS)
++
+ ifeq ($(UNAME), Linux)
+ CFLAGS += -DLINUX
+ else
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7e2a646
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+harden.diff