You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2009/01/11 03:01:20 UTC
svn commit: r733407 - in /httpd/apreq/branches/v2_10: CHANGES
glue/Makefile.am glue/perl/Makefile.PL
Author: joes
Date: Sat Jan 10 18:01:20 2009
New Revision: 733407
URL: http://svn.apache.org/viewvc?rev=733407&view=rev
Log:
The perl modules were linked against
the build location of libapreq2.so.
That's obviously broken, so we now
rebuild them during make install to
link against the installed location.
Modified:
httpd/apreq/branches/v2_10/CHANGES
httpd/apreq/branches/v2_10/glue/Makefile.am
httpd/apreq/branches/v2_10/glue/perl/Makefile.PL
Modified: httpd/apreq/branches/v2_10/CHANGES
URL: http://svn.apache.org/viewvc/httpd/apreq/branches/v2_10/CHANGES?rev=733407&r1=733406&r2=733407&view=diff
==============================================================================
--- httpd/apreq/branches/v2_10/CHANGES (original)
+++ httpd/apreq/branches/v2_10/CHANGES Sat Jan 10 18:01:20 2009
@@ -4,6 +4,11 @@
@section v2_10 Changes with libapreq2-2.10 (released Nov 11, 2008)
+- Perl Glue
+ Fix install-time linking issue of the .so modules.
+ Previously they would remain linked against the src
+ library path, not the install path.
+
- C API [joes]
Add optional interface for apreq_handle_apache2().
Modified: httpd/apreq/branches/v2_10/glue/Makefile.am
URL: http://svn.apache.org/viewvc/httpd/apreq/branches/v2_10/glue/Makefile.am?rev=733407&r1=733406&r2=733407&view=diff
==============================================================================
--- httpd/apreq/branches/v2_10/glue/Makefile.am (original)
+++ httpd/apreq/branches/v2_10/glue/Makefile.am Sat Jan 10 18:01:20 2009
@@ -15,6 +15,7 @@
cd perl; $(MAKE) test
perl_install:
+ cd perl; INSTALL=1 @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@
cd perl; $(MAKE) install
perl_clean:
Modified: httpd/apreq/branches/v2_10/glue/perl/Makefile.PL
URL: http://svn.apache.org/viewvc/httpd/apreq/branches/v2_10/glue/perl/Makefile.PL?rev=733407&r1=733406&r2=733407&view=diff
==============================================================================
--- httpd/apreq/branches/v2_10/glue/perl/Makefile.PL (original)
+++ httpd/apreq/branches/v2_10/glue/perl/Makefile.PL Sat Jan 10 18:01:20 2009
@@ -127,9 +127,19 @@
}
-my $apreq_libs = WIN32 ?
- qq{-L$base_dir/win32/libs -llib$apreq_libname -lmod_apreq2 -L$perl_lib -llibaprext -L$apache_dir/lib -lmod_perl} :
- qx{$base_dir/apreq2-config --link-ld --ldflags --libs};
+
+my $apreq_libs;
+
+if (WIN32) {
+ $apreq_libs = qq{-L$base_dir/win32/libs -llib$apreq_libname -lmod_apreq2 -L$perl_lib -llibaprext -L$apache_dir/lib -lmod_perl};
+} else {
+ my $apreq2_config = "$base_dir/apreq2-config";
+ my $bindir = qx{$apreq2_config --bindir};
+ chomp $bindir;
+ $apreq2_config = "$bindir/apreq2-config" if $ENV{INSTALL};
+ $apreq_libs = qx{$apreq2_config --link-ld --ldflags --libs};
+ chomp $apreq_libs;
+}
my $mp2_typemaps = Apache2::Build->new->typemaps;