[SCM] Verilog Debian packaging branch, master, updated. debian/3.316-1-3-g7f68aa5

gregor herrmann gregoa at debian.org
Mon Oct 8 15:08:12 UTC 2012


The following commit has been merged in the master branch:
commit 9cebce2875f68c5582637a738f865094061db9cd
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Oct 8 17:07:16 2012 +0200

    hardening.patch: add CFLAGS and CPPFLAGS to OPTIMIZE in Makefile.PL.

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..a272788
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,17 @@
+Description: Makefile.PL override OPTIMIZE, so add back hardening flags manually
+Origin: vendor
+Forwarded: not-yet
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2012-10-08
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -14,6 +14,8 @@
+     # Note OPTIMIZE is passed from upper makefile, so this code needed there too.
+     # -O2 optimization seems unreasonably slow on nearly every platform.  I give up.
+     my $optimize = $Config{optimize};  $optimize =~ s/(^| )-O2( |$)/\1-O\2/g;
++    # pass hardening flags
++    $optimize .= " $ENV{CFLAGS} $ENV{CPPFLAGS}";
+     $out .= "OPTIMIZE = $optimize\n";
+     if ($Config{osname} =~ /cygwin/i || $Config{archname} =~ /cygwin/i) {
+ 	# Cygwin ExtUtils::MakeMaker ignores our LIBS declaration and says
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..814900f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+hardening.patch

-- 
Verilog Debian packaging



More information about the Pkg-perl-cvs-commits mailing list