perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject [patch] xs/APR/APR/Makefile.PL
Date Tue, 26 Nov 2002 14:04:42 GMT
As I have mentioned earlier here:
http://mathforum.org/epigone/modperl-dev/thehplaldshend
we need to adjust to the new way apr names the libs. Here is the patch 
that makes it work with the new way. Still need to handle correctly the 
previous way. Should this be integrated into ModPerl::MM? I haven't 
found a better way then calling apu|apr-config directly since apxs 
doesn't provide this info. comments are welcome.

Index: xs/APR/APR/Makefile.PL
===================================================================
RCS file: /home/cvs/modperl-2.0/xs/APR/APR/Makefile.PL,v
retrieving revision 1.4
diff -u -r1.4 Makefile.PL
--- xs/APR/APR/Makefile.PL      6 Apr 2002 04:42:00 -0000       1.4
+++ xs/APR/APR/Makefile.PL      26 Nov 2002 13:56:11 -0000
@@ -4,12 +4,11 @@

  my $prefix = ModPerl::MM::build_config()->apxs(-q => 'PREFIX');

-my $libdir = "$prefix/lib";
-
-my @libs = map "-l$_", qw(apr aprutil);
+my @libs = map { qx{$prefix/bin/$_-config --link-ld} } qw(apr apu);
+chomp @libs;

  ModPerl::MM::WriteMakefile(
      'NAME'        => 'APR',
      'VERSION_FROM' => 'APR.pm',
-    'LIBS'         => ["-L$libdir @libs"],
+    'LIBS'         => \@libs,
  );


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message