summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf7c343)
raw | patch | inline | side by side (parent: cf7c343)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 5 Dec 2008 15:39:55 +0000 (15:39 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 5 Dec 2008 15:39:55 +0000 (15:39 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1699 a5681a0c-68f1-0310-ab6d-d61299d08faa
bindings/perl-shared/Makefile.PL | patch | blob | history |
index 8dd92d69e7e6121ca609f4471a1fdf1ae4258ca4..c4573070da057caa19f2deb0a80b5f59987f6cbd 100644 (file)
# library after it is installed. This install_name gets transfered
# to the perl shared object.
-my $librrd = "-L../../src/.libs/ $R -lrrd";
+my $librrd;
+if ($^O eq 'darwin'){
+ $librrd = '-lrrd';
+}
+else {
+ $librrd = "-L../../src/.libs/ $R -lrrd";
+}
WriteMakefile(
'NAME' => 'RRDs',
#'dynamic_lib' => {'OTHERLDFLAGS' => "$librrd -lm"},
'depend' => {'RRDs.c' => "../../src/librrd.la"},
'LDFROM' => '$(OBJECT) '.$librrd,
- 'realclean' => {FILES => 't/demo?.rrd t/demo?.png' }
+ 'realclean' => {FILES => 't/demo?.rrd t/demo?.png' },
+ ($^O eq 'darwin') ? ( 'LDDLFLAGS' => "-L../../src/.libs/ $Config{lddlflags}" ) : ()
);