summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/hardening.patch17
-rw-r--r--debian/patches/series2
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..aebfd64
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,17 @@
+Description: pass CFLAGS and CPPFLAGS explicitly in the subdirectory to get all hardening flags
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/686177
+Forwarded: not-yet
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2012-08-30
+
+--- a/tacpluslib/Makefile.PL
++++ b/tacpluslib/Makefile.PL
+@@ -20,6 +20,7 @@
+ DEFINE => $defines{$osname},
+ SKIP => [qw(static dynamic)],
+ clean => {'FILES' => 'libtacplus$(LIB_EXT)'},
++ CCFLAGS => "$ENV{'CFLAGS'} $ENV{'CPPFLAGS'}",
+ );
+
+ sub MY::top_targets {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..db655c6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+hardening.patch
+