1 Index: pkg-rrdtool/bindings/perl-shared/Makefile.PL
2 ===================================================================
3 --- pkg-rrdtool.orig/bindings/perl-shared/Makefile.PL 2008-02-10 15:31:58.000000000 +0100
4 +++ pkg-rrdtool/bindings/perl-shared/Makefile.PL 2008-02-10 15:34:16.000000000 +0100
5 @@ -3,26 +3,7 @@
6 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
7 # the contents of the Makefile that is written.
9 -# if the last argument when calling Makefile.PL is RPATH=/... and ... is the
10 -# path to librrd.so then the Makefile will be written such that RRDs.so knows
11 -# where to find librrd.so later on ...
12 my $R="";
13 -if ($ARGV[-1] =~ /RPATH=(\S+)/){
14 - pop @ARGV;
15 - my $rp = $1;
16 - for ($^O){
17 - /linux/ && do{ $R = "-Wl,--rpath -Wl,$rp"};
18 - /hpux/ && do{ $R = "+b$rp"};
19 - /solaris/ && do{ $R = "-R$rp"};
20 - /aix/ && do{ $R = "-Wl,-blibpath:$rp"};
21 - }
22 -}
23 -
24 -# darwin works without this because librrd contains its
25 -# install_name which will includes the final location of the
26 -# library after it is installed. This install_name gets transfered
27 -# to the perl shared object.
28 -
29 my $librrd = "-L../../src/.libs/ $R -lrrd";
31 WriteMakefile(