From cdbb3ff0c9f7e26edf743ec8a1f8a39c86223789 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 5 Dec 2008 15:39:55 +0000 Subject: [PATCH] integrate osx build hints as indicated in #192 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1699 a5681a0c-68f1-0310-ab6d-d61299d08faa --- bindings/perl-shared/Makefile.PL | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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}" ) : () ); -- 2.30.2