diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2014-06-17 12:07:06 +0400 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-06-17 12:07:06 +0400 |
| commit | 52222dcda66126aaf073083b752c29d4425b9511 (patch) | |
| tree | e6b3c3851f7a91bd7831396ee005b19e2fedfea5 | |
| parent | bec7415b854777108ea0847500948bedd569fb20 (diff) | |
| download | nginx-52222dcda66126aaf073083b752c29d4425b9511.tar.gz nginx-52222dcda66126aaf073083b752c29d4425b9511.tar.bz2 | |
Configure: workaround for system perl on OS X (ticket #576).
| -rw-r--r-- | auto/lib/perl/conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/auto/lib/perl/conf b/auto/lib/perl/conf index 2fbaa76b7..91009f15e 100644 --- a/auto/lib/perl/conf +++ b/auto/lib/perl/conf @@ -52,6 +52,11 @@ if test -n "$NGX_PERL_VER"; then ngx_perl_ldopts=`echo $ngx_perl_ldopts | sed 's/ -pthread//'` fi + if [ "$NGX_SYSTEM" = "Darwin" ]; then + # OS X system perl wants to link universal binaries + ngx_perl_ldopts=`echo $ngx_perl_ldopts | sed -e 's/-arch x86_64 -arch i386//'` + fi + CORE_LINK="$CORE_LINK $ngx_perl_ldopts" LINK_DEPS="$LINK_DEPS $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext" |
