summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f4a92c)
raw | patch | inline | side by side (parent: 1f4a92c)
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) |
program/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}" ) : ()
);