From: Tobias Oetiker Date: Wed, 18 May 2005 19:18:59 +0000 (+0000) Subject: help building perl on hpux X-Git-Tag: 1.2.9~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b18f2f67badc1d05a1afe67fe8dd0a7f8cd3b4d;p=thirdparty%2Frrdtool-1.x.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 4fb14e56..e0a46140 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(