From 9532fe13098c76224f913f8d714cb60c6d051533 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/program@578 a5681a0c-68f1-0310-ab6d-d61299d08faa --- bindings/perl-shared/Makefile.PL | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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( -- 2.11.0