summaryrefslogtreecommitdiff
path: root/auto/lib/perl/conf
diff options
context:
space:
mode:
Diffstat (limited to 'auto/lib/perl/conf')
-rw-r--r--auto/lib/perl/conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/auto/lib/perl/conf b/auto/lib/perl/conf
index 5ce6c91e6..2fbaa76b7 100644
--- a/auto/lib/perl/conf
+++ b/auto/lib/perl/conf
@@ -40,6 +40,8 @@ if test -n "$NGX_PERL_VER"; then
ngx_perl_ldopts=`$NGX_PERL -MExtUtils::Embed -e ldopts`
+ ngx_perl_dlext=`$NGX_PERL -MConfig -e 'print $Config{dlext}'`
+
if $NGX_PERL -V:usemultiplicity | grep define > /dev/null; then
have=NGX_HAVE_PERL_MULTIPLICITY . auto/have
echo " + perl interpreter multiplicity found"
@@ -51,7 +53,7 @@ if test -n "$NGX_PERL_VER"; then
fi
CORE_LINK="$CORE_LINK $ngx_perl_ldopts"
- LINK_DEPS="$LINK_DEPS $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.so"
+ LINK_DEPS="$LINK_DEPS $NGX_OBJS/src/http/modules/perl/blib/arch/auto/nginx/nginx.$ngx_perl_dlext"
if test -n "$NGX_PERL_MODULES"; then
have=NGX_PERL_MODULES value="(u_char *) \"$NGX_PERL_MODULES\""