]>
Commit | Line | Data |
---|---|---|
e50d0ca0 AM |
1 | diff -urN subversion-0.34.0.org/subversion/bindings/swig/perl/Makefile.PL subversion-0.34.0/subversion/bindings/swig/perl/Makefile.PL |
2 | --- subversion-0.34.0.org/subversion/bindings/swig/perl/Makefile.PL 2003-12-04 14:17:49.244647569 +0100 | |
3 | +++ subversion-0.34.0/subversion/bindings/swig/perl/Makefile.PL 2003-12-04 14:19:39.765599240 +0100 | |
5ac55730 AM |
4 | @@ -2,14 +2,17 @@ |
5 | use ExtUtils::MakeMaker; | |
6 | ||
7 | my @modules = qw/client delta fs ra repos wc/; | |
8 | +my @ldpaths = ('../.libs', map {"../../../libsvn_$_/.libs"} (@modules, qw/diff subr/)); | |
e50d0ca0 | 9 | my @ldmodules = map {"-lsvn_$_-1"} (@modules, qw/diff subr/); |
5ac55730 AM |
10 | |
11 | my $apr_config = $ENV{APR_CONFIG} || '/usr/local/lib/apache2/apr-config'; | |
12 | $apr_config = 'apr-config' unless -e $apr_config; | |
13 | ||
14 | +my $apr_shlib_path_var = `$apr_config --shlib-path-var`; | |
15 | my $apr_cflags = `$apr_config --includes`; | |
e50d0ca0 | 16 | my $apr_ldflags = `$apr_config --cflags --libs`; |
5ac55730 AM |
17 | |
18 | +chomp $apr_shlib_path_var; | |
19 | chomp $apr_cflags; | |
20 | chomp $apr_ldflags; | |
21 | ||
22 | @@ -19,7 +22,7 @@ | |
23 | ' -I.. -I../../../include -g'), | |
24 | OBJECT => q/$(O_FILES)/, | |
25 | dynamic_lib => { | |
26 | - OTHERLDFLAGS => join(' ', $apr_ldflags, '-L/usr/local/lib', | |
27 | + OTHERLDFLAGS => join(' ', $apr_ldflags, (map {"-L$_"} @ldpaths), | |
28 | @ldmodules, '-lsvn_swig_perl-1', | |
29 | `swig -perl -ldflags`), | |
30 | }, | |
31 | @@ -66,6 +69,7 @@ | |
32 | (map {"\nsvn_$_.c : ../svn_$_.i ra_plugin.hi ra_reporter.hi delta_editor.hi\n". | |
33 | "\tswig -c -nopm -perl -I.. -I../../../include $apr_cflags -module SVN::_".main::perlish($_)." -o svn_$_.c ../svn_$_.i\n"} | |
34 | @modules), | |
35 | - | |
36 | + "\nFULLPERLRUN=$apr_shlib_path_var=",join(':',@ldpaths), | |
37 | + " \$(FULLPERL)\n", | |
38 | ); | |
39 | } | |
e50d0ca0 | 40 |