Code

ad53e6343cd953ed44ec8a11c9d494e5c61771ae
[pkg-rrdtool.git] / debian / patches / no-rpath-for-perl
1 diff a/bindings/perl-shared/Makefile.PL b/bindings/perl-shared/Makefile.PL
2 --- a/bindings/perl-shared/Makefile.PL
3 +++ b/bindings/perl-shared/Makefile.PL
4 @@ -3,27 +3,7 @@ use Config;
5  # See lib/ExtUtils/MakeMaker.pm for details of how to influence
6  # the contents of the Makefile that is written.
7  
8 -# if the last argument when calling Makefile.PL is RPATH=/... and ... is the
9 -# path to librrd.so then the Makefile will be written such that RRDs.so knows
10 -# where to find librrd.so later on ... 
11  my $R="";
12 -if ($ARGV[-1] =~ /RPATH=(\S+)/){
13 -       pop @ARGV;
14 -       my $rp = $1;
15 -       for ($^O){
16 -               /linux/   && do{ $R = "-Wl,--rpath -Wl,$rp"};
17 -               /hpux/    && do{ $R = "+b$rp"};
18 -               /solaris/ && do{ $R = "-R$rp"};
19 -               /bsd/     && 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;
30  if ($^O eq 'darwin'){
31          $librrd = '-lrrd';