Bug#710826: perl: relro linker flag not included in lddlflags

Niko Tyni ntyni at debian.org
Mon Jun 3 07:55:52 UTC 2013


On Sun, Jun 02, 2013 at 12:11:00PM -0700, Russ Allbery wrote:
> Package: perl
> Version: 5.14.2-21
> Severity: normal
> 
> I feel like I must be missing something, but as near as I can tell,
> -Wl,-z,relro doesn't appear to be passed into Perl module builds by
> default.  At least, it's not included in lddlflags, so I'm not seeing
> it in a module that I'm building with Module::Build.

You're supposed to incorporate dpkg-buildflags into the build
yourself, we're not pushing them into all the modules.
>From the changelog:

perl (5.14.2-9) unstable; urgency=low
[...]
  * Modify Config_heavy.pl after the build to remove dpkg-buildflags
    effects on ccflags and lddlflags; we don't want to force them on
    all XS modules at this stage. (See #657853)

This is obviously a tradeoff, but I think it's the "right" way
to do this, just like we didn't want dpkg-buildpackage to force
CFLAGS et al.
-- 
Niko Tyni   ntyni at debian.org




More information about the Perl-maintainers mailing list