comparison auto/lib/perl/conf @ 5722:baf2816d556d

Configure: workaround for system perl on OS X (ticket #576).
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 17 Jun 2014 12:07:06 +0400
parents f6777aef5b2f
children 6e4bb1d6679d
comparison
equal deleted inserted replaced
5721:6ce251c860ba 5722:baf2816d556d
50 if $NGX_PERL -V:useithreads | grep undef > /dev/null; then 50 if $NGX_PERL -V:useithreads | grep undef > /dev/null; then
51 # FreeBSD port wants to link with -pthread non-threaded perl 51 # FreeBSD port wants to link with -pthread non-threaded perl
52 ngx_perl_ldopts=`echo $ngx_perl_ldopts | sed 's/ -pthread//'` 52 ngx_perl_ldopts=`echo $ngx_perl_ldopts | sed 's/ -pthread//'`
53 fi 53 fi
54 54
55 if [ "$NGX_SYSTEM" = "Darwin" ]; then
56 # OS X system perl wants to link universal binaries
57 ngx_perl_ldopts=`echo $ngx_perl_ldopts | sed -e 's/-arch x86_64 -arch i386//'`
58 fi
59
55 CORE_LINK="$CORE_LINK $ngx_perl_ldopts" 60 CORE_LINK="$CORE_LINK $ngx_perl_ldopts"
56 LINK_DEPS="$LINK_DEPS $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext" 61 LINK_DEPS="$LINK_DEPS $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext"
57 62
58 if test -n "$NGX_PERL_MODULES"; then 63 if test -n "$NGX_PERL_MODULES"; then
59 have=NGX_PERL_MODULES value="(u_char *) \"$NGX_PERL_MODULES\"" 64 have=NGX_PERL_MODULES value="(u_char *) \"$NGX_PERL_MODULES\""