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=7d8104f3a986effe267d4479065607f968017b8e;p=rrdtool-all.git integrate osx build hints as indicated in #192 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@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}" ) : () );