summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
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