From bc1336f0da048f9cf8290d09eacc0d97be7b4256 Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 18 May 2005 19:18:59 +0000 Subject: [PATCH] help building perl on hpux git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@578 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/bindings/perl-shared/Makefile.PL | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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( -- 2.30.2