File: honour-env-LDFLAGS.patch

package info (click to toggle)
libapache2-mod-perl2 2.0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,060 kB
  • sloc: perl: 97,665; ansic: 14,478; makefile: 47; sh: 18
file content (18 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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@debian.org>
Bug-Debian: https://bugs.debian.org/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;
 }