From 7d8104f3a986effe267d4479065607f968017b8e 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/branches/1.3@1699 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/bindings/perl-shared/Makefile.PL | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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}" ) : () ); -- 2.30.2