Files
perl-Math-GSL/0001-Hardening-Build-Patch.patch

23 lines
710 B
Diff
Raw Permalink Normal View History

Description: Add hardening flags
Forwarded: not-needed
Author: Wolfgang Fütterer <debian@wlf-online.de>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2016-10-03
---
Build.PL | 3 +++
1 file changed, 3 insertions(+)
--- a/Build.PL
+++ b/Build.PL
@@ -45,6 +45,9 @@ $swig_flags = ' -I/usr/include' if $ccfl
$ccflags .= " $Config{ccflags}"; # we need this for some Linuxes
+$ccflags .= " $ENV{CFLAGS} $ENV{CPPFLAGS}"; #Needed for hardening on debian
+$ldflags .= " $ENV{CFLAGS} $ENV{LDFLAGS}"; #Needed for hardening on debian
+
## Swig produces a number of GCC warnings. Turn them off if we can.
$ccflags .= try_cflags("-Wall");
$ccflags .= try_cflags("-Wno-sometimes-uninitialized");