aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/perl/Makefile.PL
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/perl/Makefile.PL')
-rw-r--r--src/http/modules/perl/Makefile.PL7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/http/modules/perl/Makefile.PL b/src/http/modules/perl/Makefile.PL
index 48f1ebcd2..c33b1fc72 100644
--- a/src/http/modules/perl/Makefile.PL
+++ b/src/http/modules/perl/Makefile.PL
@@ -12,7 +12,7 @@ WriteMakefile(
ABSTRACT_FROM => 'nginx.pm', # retrieve abstract from module
AUTHOR => 'Igor Sysoev',
- CCFLAGS => "$ENV{NGX_PERL_CFLAGS}",
+ CCFLAGS => "$ENV{NGX_PM_CFLAGS}",
OPTIMIZE => '-O',
INC => "-I ../../../../../src/core " .
@@ -22,8 +22,9 @@ WriteMakefile(
"-I ../../../../../src/http/modules " .
"-I ../../../../../src/http/modules/perl " .
"-I ../../../../../$ENV{NGX_OBJS} " .
- "-I ../../../../../$ENV{NGX_PCRE} " .
- "-I ../../../../../$ENV{NGX_ZLIB} ",
+ ($ENV{NGX_PCRE} =~ /^(YES|NO)/ ? "" :
+ ($ENV{NGX_PCRE} =~ m#^/# ? "-I $ENV{NGX_PCRE} " :
+ "-I ../../../../../$ENV{NGX_PCRE} ")),
depend => {
'nginx.c' =>