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=cdbb3ff0c9f7e26edf743ec8a1f8a39c86223789;p=rrdtool.git integrate osx build hints as indicated in #192 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1699 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/bindings/perl-shared/Makefile.PL b/bindings/perl-shared/Makefile.PL index 8dd92d6..c457307 100644 --- a/bindings/perl-shared/Makefile.PL +++ b/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}" ) : () );