]> git.kaiwu.me - nginx.git/commitdiff
Configure: workaround for system perl on OS X (ticket #576).
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 17 Jun 2014 08:07:06 +0000 (12:07 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 17 Jun 2014 08:07:06 +0000 (12:07 +0400)
auto/lib/perl/conf

index 2fbaa76b71685c7b8504f4c0c8a3890a57ab4745..91009f15e63cb281cceb279ee44934f9e677c95d 100644 (file)
@@ -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"