Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r5146 - trunk/auto/lib/perl

Anonymous User
March 28, 2013 04:48AM
Author: ru
Date: 2013-03-28 08:46:42 +0000 (Thu, 28 Mar 2013)
New Revision: 5146
URL: http://trac.nginx.org/nginx/changeset/5146/nginx

Log:
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.


Modified:
trunk/auto/lib/perl/conf
trunk/auto/lib/perl/make

Modified: trunk/auto/lib/perl/conf
===================================================================
--- trunk/auto/lib/perl/conf 2013-03-28 08:46:12 UTC (rev 5145)
+++ trunk/auto/lib/perl/conf 2013-03-28 08:46:42 UTC (rev 5146)
@@ -40,6 +40,8 @@

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 @@
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\""

Modified: trunk/auto/lib/perl/make
===================================================================
--- trunk/auto/lib/perl/make 2013-03-28 08:46:12 UTC (rev 5145)
+++ trunk/auto/lib/perl/make 2013-03-28 08:46:42 UTC (rev 5146)
@@ -5,7 +5,7 @@

cat << END >> $NGX_MAKEFILE

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

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r5146 - trunk/auto/lib/perl

Anonymous User 541 March 28, 2013 04:48AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready