Code

Refreshing patches, dropping bts625631-gcc4.5.
[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 @@ -20,26 +20,7 @@ if (($Config{'osname'} eq 'MSWin32' && $
5                 ) : ()
6         );
7  }else{
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 = "-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         my $librrd;
29         if ($^O eq 'darwin'){
30          $librrd = '-lrrd';