From: oetiker Date: Wed, 18 May 2005 19:18:59 +0000 (+0000) Subject: help building perl on hpux X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9532fe13098c76224f913f8d714cb60c6d051533;p=rrdtool.git help building perl on hpux git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@578 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/bindings/perl-shared/Makefile.PL b/bindings/perl-shared/Makefile.PL index 4fb14e5..e0a4614 100644 --- a/bindings/perl-shared/Makefile.PL +++ b/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(