git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@578
a5681a0c-68f1-0310-ab6d-
d61299d08faa
# the contents of the Makefile that is written.
# Specify the location of the archive containing PIC compiled object files.
# 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(
my $librrd = "-L../../src/.libs/ $R\$(RPATH) -lrrd";
WriteMakefile(