summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b3f8a0)
raw | patch | inline | side by side (parent: 9b3f8a0)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 28 May 2005 12:52:26 +0000 (12:52 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 28 May 2005 12:52:26 +0000 (12:52 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@600 a5681a0c-68f1-0310-ab6d-d61299d08faa
bindings/perl-shared/Makefile.PL | patch | blob | history |
index e0a461409fa841a121e45ac6315ef8fb932acd94..75834ecbeabaab8358bf87bd07d2223d3fa73994 100644 (file)
# the contents of the Makefile that is written.
# Specify the location of the archive containing PIC compiled object files.
-my $R = "-R" ;
+my $R = "";
+
for ($^O){
- /linux/ && do{ $R = "-Wl,--rpath -Wl,"};
- /hpux/ && do{ $R = "+b"};
+ /linux/ && do{ $R = "-Wl,--rpath -Wl,\$(RPATH)"};
+ /hpux/ && do{ $R = "+b\$(RPATH)"};
+ /solaris/ && do{ $R = "-R\$(RPATH)"};
}
-my $librrd = "-L../../src/.libs/ $R\$(RPATH) -lrrd";
+# darwin works without this because librrd contains its
+# install_name which will includes the final location of the
+# library after it is installed. This install_name gets transfered
+# to the perl shared object.
+
+my $librrd = "-L../../src/.libs/ $R -lrrd";
WriteMakefile(
'NAME' => 'RRDs',