Skip to content

Commit 6eeea46

Browse files
author
ru
committed
Configure: fixed perl module make rules.
Filename extension used for dynamically loaded perl modules isn't necessarily ".so" (e.g., it's ".bundle" on Mac OS X). This fixes "make" after "make" unnecessarily rebuilding perl module.
1 parent be271b8 commit 6eeea46

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

auto/lib/perl/conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ if test -n "$NGX_PERL_VER"; then
4040

4141
ngx_perl_ldopts=`$NGX_PERL -MExtUtils::Embed -e ldopts`
4242

43+
ngx_perl_dlext=`$NGX_PERL -MConfig -e 'print $Config{dlext}'`
44+
4345
if $NGX_PERL -V:usemultiplicity | grep define > /dev/null; then
4446
have=NGX_HAVE_PERL_MULTIPLICITY . auto/have
4547
echo " + perl interpreter multiplicity found"
@@ -51,7 +53,7 @@ if test -n "$NGX_PERL_VER"; then
5153
fi
5254

5355
CORE_LINK="$CORE_LINK $ngx_perl_ldopts"
54-
LINK_DEPS="$LINK_DEPS $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.so"
56+
LINK_DEPS="$LINK_DEPS $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext"
5557

5658
if test -n "$NGX_PERL_MODULES"; then
5759
have=NGX_PERL_MODULES value="(u_char *) \"$NGX_PERL_MODULES\""

auto/lib/perl/make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
cat << END >> $NGX_MAKEFILE
77

8-
$NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.so: \\
8+
$NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext: \\
99
\$(CORE_DEPS) \$(HTTP_DEPS) \\
1010
src/http/modules/perl/ngx_http_perl_module.h \\
1111
$NGX_OBJS/src/http/modules/perl/Makefile

0 commit comments

Comments
 (0)