From: oetiker Date: Fri, 5 Dec 2008 15:39:55 +0000 (+0000) Subject: integrate osx build hints as indicated in #192 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=348f8857c2ac73bfbbfed3ee487a6387567914c9;p=rrdtool-all.git integrate osx build hints as indicated in #192 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1699 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/bindings/perl-shared/Makefile.PL b/program/bindings/perl-shared/Makefile.PL index 8dd92d69..c4573070 100644 --- a/program/bindings/perl-shared/Makefile.PL +++ b/program/bindings/perl-shared/Makefile.PL @@ -24,7 +24,13 @@ if ($ARGV[-1] =~ /RPATH=(\S+)/){ # 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', @@ -35,6 +41,7 @@ WriteMakefile( #'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}" ) : () );