Skip to content
Snippets Groups Projects
Commit 506cd580 authored by Damyan Ivanov's avatar Damyan Ivanov
Browse files

Patch Apache2::Build to add LDFLAGS to ldopts() result

Closes: #823967
parent 45971ec2
No related branches found
No related tags found
No related merge requests found
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@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;
}
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment