help building perl on hpux
[rrdtool.git] / bindings / perl-shared / Makefile.PL
index 1701ded..e0a4614 100644 (file)
@@ -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(