summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e9fb580)
raw | patch | inline | side by side (parent: e9fb580)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 5 Jan 2006 20:39:12 +0000 (20:39 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 5 Jan 2006 20:39:12 +0000 (20:39 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@740 a5681a0c-68f1-0310-ab6d-d61299d08faa
bindings/Makefile.am | patch | blob | history | |
bindings/perl-shared/Makefile.PL | patch | blob | history |
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
index 6594e18428efa807dcda4cd743f16f0e22b6edaa..67df11f5923051dfc5596959c151da7870171b4c 100644 (file)
--- a/bindings/Makefile.am
+++ b/bindings/Makefile.am
cd perl-piped && $(PERL) Makefile.PL $(PERL_MAKE_OPTIONS)
perl_shared: perl-shared/Makefile
- cd perl-shared && $(MAKE) RPATH=$(exec_prefix)/lib
+ cd perl-shared && $(MAKE)
perl-shared/Makefile: perl-shared/Makefile.PL
- cd perl-shared && $(PERL) Makefile.PL $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
+ cd perl-shared && $(PERL) Makefile.PL $(PERLFLAGS) $(PERL_MAKE_OPTIONS) RPATH=$(exec_prefix)/lib
# LIBS="$(LDFLAGS) $(LIBS)" $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
clean-local:
index 75834ecbeabaab8358bf87bd07d2223d3fa73994..516cc39a50aaf7bd2af9908a1d8578e7940820c1 100644 (file)
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
-# Specify the location of the archive containing PIC compiled object files.
-my $R = "";
-
-
-for ($^O){
- /linux/ && do{ $R = "-Wl,--rpath -Wl,\$(RPATH)"};
- /hpux/ && do{ $R = "+b\$(RPATH)"};
- /solaris/ && do{ $R = "-R\$(RPATH)"};
+# if the last argument when calling Makefile.PL is RPATH=/... and ... is the
+# path to librrd.so then the Makefile will be written such that RRDs.so knows
+# where to find librrd.so later on ...
+my $R="";
+if ($ARGV[-1] =~ /RPATH=(\S+)/){
+ pop @ARGV;
+ my $rp = $1;
+ for ($^O){
+ /linux/ && do{ $R = "-Wl,--rpath -Wl,$rp"};
+ /hpux/ && do{ $R = "+b$rp"};
+ /solaris/ && do{ $R = "-R$rp"};
+ }
}
# darwin works without this because librrd contains its
'dynamic_lib' => {'OTHERLDFLAGS' => "$librrd -lm"},
'realclean' => {FILES => 't/demo?.rrd t/demo?.png' }
);
+