From c8526aca2529ee0095afc3016a2f4106a9aeefdf Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Tue, 20 Sep 2016 22:11:23 +0300 Subject: 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. --- src/http/modules/perl/Makefile.PL | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/http/modules/perl/Makefile.PL b/src/http/modules/perl/Makefile.PL index 03348b555..7edadcb3d 100644 --- 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})), -- cgit