Mercurial > hg > nginx
diff src/http/modules/perl/Makefile.PL @ 6700:0d2956dfc4e6
Perl: pass additional linker options to perl module.
Previously flags passed by --with-ld-opt were not used when building perl
module, which meant hardening flags provided by package build systems were not
applied.
author | Konstantin Pavlov <thresh@nginx.com> |
---|---|
date | Tue, 20 Sep 2016 22:11:23 +0300 |
parents | 2db6bdcaedc0 |
children |
line wrap: on
line diff
--- a/src/http/modules/perl/Makefile.PL +++ b/src/http/modules/perl/Makefile.PL @@ -16,6 +16,8 @@ WriteMakefile( CCFLAGS => "$ENV{NGX_PM_CFLAGS}", OPTIMIZE => '-O', + LDDLFLAGS => "$ENV{NGX_PM_LDFLAGS}", + INC => join(" ", map { m#^/# ? "-I $_" : "-I ../../../../../$_" } (split /\s+/, $ENV{NGX_INCS})),