[libapache2-mod-perl2] 01/03: Patch Apache2::Build to add LDFLAGS to ldopts() result

Damyan Ivanov dmn at moszumanska.debian.org
Sun May 29 12:59:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

dmn pushed a commit to branch master
in repository libapache2-mod-perl2.

commit 506cd5809a880acdf9e028fef64781b196a533eb
Author: Damyan Ivanov <dmn at debian.org>
Date:   Sun May 29 12:46:03 2016 +0000

    Patch Apache2::Build to add LDFLAGS to ldopts() result
    
    Closes: #823967
---
 debian/patches/honour-env-LDFLAGS.patch | 18 ++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/honour-env-LDFLAGS.patch b/debian/patches/honour-env-LDFLAGS.patch
new file mode 100644
index 0000000..48321e0
--- /dev/null
+++ b/debian/patches/honour-env-LDFLAGS.patch
@@ -0,0 +1,18 @@
+Description: LDFLAGS from the environment
+ Debian build system has a standard way to deploy various hardening compiler
+ and linker flags. This includes setting CPPFLAGS, CFLAGS and LDFLAGS. However,
+ LDFLAGS is ignored by Apache2::Build.
+Author: Damyan Ivanov <dmn at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823967
+
+--- a/lib/Apache2/Build.pm
++++ b/lib/Apache2/Build.pm
+@@ -557,6 +557,8 @@ sub ldopts {
+             or warn "Failed to fix Irix symbol exporting\n";
+     }
+ 
++    $ldopts .= " $ENV{LDFLAGS}" if exists $ENV{LDFLAGS};
++
+     $ldopts;
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index c9be78f..e4e05df 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -15,3 +15,4 @@ avoid-db-linkage.patch
 0002-Fix-t-modperl-print.t-t-modperl-printf.t-and-t-direc.patch
 svn-r1717474-perl-5.22.patch
 0001-Skip-t-protocol-pseudo_http.t-incompatible-with-Apac.patch
+honour-env-LDFLAGS.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libapache2-mod-perl2.git



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