[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Detect the proper shell variable to set to give path to shared libraries in Makefile.PL

From: Ben Reser <ben_at_reser.org>
Date: 2003-11-29 20:30:29 CET

On Sat, Nov 29, 2003 at 11:27:19AM -0800, Ben Reser wrote:
> * subversion/bindings/swig/perl/Makefile.PL
> Use apr-config to detect the proper name for LD_LIBRARY_PATH,
> which may vary on some platforms.
>

Errr use this patch instead. Forgot to chomp the variable so it didn't
work.

Index: subversion/bindings/swig/perl/Makefile.PL
===================================================================
--- subversion/bindings/swig/perl/Makefile.PL (revision 7871)
+++ subversion/bindings/swig/perl/Makefile.PL (working copy)
@@ -11,6 +11,8 @@
 
 my $apr_cflags = `$apr_config --includes`;
 my $apr_ldflags = `$apr_config --cflags --libs`;
+my $shlibpath = `$apr_config --shlib-path-var`;
+chomp $shlibpath;
 
 chomp $apr_cflags;
 chomp $apr_ldflags;
@@ -69,7 +71,7 @@
               (map {"\nsvn_$_.c : ../svn_$_.i ra_plugin.hi
ra_reporter.hi delta_editor.hi\n".
                        "\tswig -c -nopm -perl -I.. -I../../../include
$apr_cflags -module SVN::_".main::perlish($_)." -o svn_$_.c
../svn_$_.i\n"}
               @modules),
- "\nFULLPERLRUN=LD_LIBRARY_PATH=",join(':',@ldpaths),
+ "\nFULLPERLRUN=$shlibpath=",join(':',@ldpaths),
                " \$(FULLPERL)\n",
              );
 }

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 29 20:31:02 2003

This is an archived mail posted to the Subversion Dev mailing list.