You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Florian Schlichting
Original Redmine Issue: 786 from https://www.veripool.org
Original Date: 2014-06-12
Original Assignee: Florian Schlichting
Hi,
in Debian, we have a need to pass CFLAGS and CPPFLAGS environment variables in order to automatically enable certain hardening features. For this, we have been using the following patch to Makefile.PL, which I'm forwarding for inclusion upstream:
Description: Makefile.PL override OPTIMIZE, so add back hardening flags manually
Author: gregor herrmann <gregoa@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
thanks,
Florian
The text was updated successfully, but these errors were encountered:
Author Name: Florian Schlichting
Original Redmine Issue: 786 from https://www.veripool.org
Original Date: 2014-06-12
Original Assignee: Florian Schlichting
Hi,
in Debian, we have a need to pass CFLAGS and CPPFLAGS environment variables in order to automatically enable certain hardening features. For this, we have been using the following patch to Makefile.PL, which I'm forwarding for inclusion upstream:
thanks,
Florian
The text was updated successfully, but these errors were encountered: