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

[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:27:19 CET

* subversion/bindings/swig/perl/Makefile.PL
    Use apr-config to detect the proper name for LD_LIBRARY_PATH,
    which may vary on some platforms.

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,7 @@
 
 my $apr_cflags = `$apr_config --includes`;
 my $apr_ldflags = `$apr_config --cflags --libs`;
+my $shlibpath = `$apr_config --shlib-path-var`;
 
 chomp $apr_cflags;
 chomp $apr_ldflags;
@@ -69,7 +70,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:27:58 2003

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