summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2016-09-20 22:11:23 +0300
committerKonstantin Pavlov <thresh@nginx.com>2016-09-20 22:11:23 +0300
commitc8526aca2529ee0095afc3016a2f4106a9aeefdf (patch)
treef504948e7565ae4d1efb894dd61a2157cd76a07a /src
parent89f82c1155d0e2291f30819c38d438e112ba569a (diff)
downloadnginx-c8526aca2529ee0095afc3016a2f4106a9aeefdf.tar.gz
nginx-c8526aca2529ee0095afc3016a2f4106a9aeefdf.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/perl/Makefile.PL2
1 files changed, 2 insertions, 0 deletions
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})),