Add patch hardening.patch:
authorgregor herrmann <gregoa@debian.org>
Wed, 29 Aug 2012 22:10:40 +0000 (00:10 +0200)
committergregor herrmann <gregoa@debian.org>
Wed, 29 Aug 2012 22:10:40 +0000 (00:10 +0200)
pass CFLAGS and CPPFLAGS manually to the sub-make in order to get all
hardening flags.

Thanks: Simon Ruderich for the bug report.
Closes: #686177

debian/patches/hardening.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644 (file)
index 0000000..aebfd64
--- /dev/null
@@ -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 (file)
index 0000000..db655c6
--- /dev/null
@@ -0,0 +1,2 @@
+hardening.patch
+