-=| Niko Tyni, 10.05.2016 22:44:07 +0300 |=-
> Package: libapache2-mod-perl2
> Version: 2.0.9-4
> 
> As noticed by lintian, mod_perl.so is not linked with
> -Wl,-z,relro.
> 
> W: libapache2-mod-perl2: hardening-no-relro 
> usr/lib/apache2/modules/mod_perl.so
> 
> It looks like we're currently using the debhelper default behaviour where
> linker flags are passed to Makefile.PL in an LD=[...] argument. This
> normally works with ExtUtils::MakeMaker, but apparently not with the
> libapache2-mod-perl2 build system.
> 
> I see Apache2::Build::ldopts uses
> 
>     my $ld = $self->perl_config('ld');
> 
> so that part probably needs some work. Filing this to track
> the issue, but I'm not promising a patch any time soon...

The following patch seems to fix this. Is it too crude?

-----------------------------------------
--- 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;
 }
 
-----------------------------------------

Cheers,
    dam

Attachment: signature.asc
Description: Digital signature

Reply via email to