diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2012-12-03 16:00:26 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2012-12-03 16:00:26 +0000 |
| commit | 760c55a702886826813010a2f0b662b87c2fbee0 (patch) | |
| tree | 9d7925aab670d055bc15af3517ab5e4913a24a30 /src | |
| parent | f707bea0ee63f1e468a0a7070220968245fb4766 (diff) | |
| download | nginx-760c55a702886826813010a2f0b662b87c2fbee0.tar.gz nginx-760c55a702886826813010a2f0b662b87c2fbee0.tar.bz2 | |
Fixed build with embedded perl in certain setups (ticket #48).
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/modules/perl/Makefile.PL | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/http/modules/perl/Makefile.PL b/src/http/modules/perl/Makefile.PL index cfb38c190..78a1e516b 100644 --- a/src/http/modules/perl/Makefile.PL +++ b/src/http/modules/perl/Makefile.PL @@ -16,20 +16,9 @@ WriteMakefile( CCFLAGS => "$ENV{NGX_PM_CFLAGS}", OPTIMIZE => '-O', - INC => "-I ../../../../../src/core " . - "-I ../../../../../src/event " . - "-I ../../../../../src/os/unix " . - "-I ../../../../../src/http " . - "-I ../../../../../src/http/modules " . - "-I ../../../../../src/http/modules/perl " . - "-I ../../../../../$ENV{NGX_OBJS} " . - ($ENV{NGX_PCRE} =~ /^(YES|NO)/ ? "" : - ($ENV{NGX_PCRE} =~ m#^/# ? "-I $ENV{NGX_PCRE} " : - "-I ../../../../../$ENV{NGX_PCRE} ")) . - ($ENV{NGX_OPENSSL} =~ /^(YES|NO)/ ? "" : - ($ENV{NGX_OPENSSL} =~ m#^/# ? - "-I $ENV{NGX_OPENSSL}/.openssl/include " : - "-I ../../../../../$ENV{NGX_OPENSSL}/.openssl/include ")), + INC => join(" ", map { + m#^/# ? "-I $_" : "-I ../../../../../$_" + } (split /\s+/, $ENV{NGX_INCS})), depend => { 'nginx.c' => |
