From: oetiker Date: Wed, 18 May 2005 19:18:59 +0000 (+0000) Subject: help building perl on hpux X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bc1336f0da048f9cf8290d09eacc0d97be7b4256;p=rrdtool-all.git help building perl on hpux git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@578 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/bindings/perl-shared/Makefile.PL b/program/bindings/perl-shared/Makefile.PL index 4fb14e56..e0a46140 100644 --- a/program/bindings/perl-shared/Makefile.PL +++ b/program/bindings/perl-shared/Makefile.PL @@ -4,7 +4,13 @@ use Config; # the contents of the Makefile that is written. # Specify the location of the archive containing PIC compiled object files. -my $R = $^O eq 'linux' ? "-Wl,--rpath -Wl," : "-R" ; +my $R = "-R" ; + +for ($^O){ + /linux/ && do{ $R = "-Wl,--rpath -Wl,"}; + /hpux/ && do{ $R = "+b"}; +} + my $librrd = "-L../../src/.libs/ $R\$(RPATH) -lrrd"; WriteMakefile(