X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=bindings%2Fperl-shared%2FMakefile.PL;h=4fb14e56d82c36064b2837820398ad230e976470;hb=09aeabf159a489a427358ab66e48ba42303778f7;hp=b7732be459178295e68c133396a3bde17e40917c;hpb=5837606887a6d81e8b1f7588525cb1c8783fb62b;p=rrdtool.git diff --git a/bindings/perl-shared/Makefile.PL b/bindings/perl-shared/Makefile.PL index b7732be..4fb14e5 100644 --- a/bindings/perl-shared/Makefile.PL +++ b/bindings/perl-shared/Makefile.PL @@ -4,16 +4,15 @@ use Config; # the contents of the Makefile that is written. # Specify the location of the archive containing PIC compiled object files. -my $librrd = "-L../../src/.libs/ -lrrd_private" ; +my $R = $^O eq 'linux' ? "-Wl,--rpath -Wl," : "-R" ; +my $librrd = "-L../../src/.libs/ $R\$(RPATH) -lrrd"; WriteMakefile( 'NAME' => 'RRDs', 'VERSION_FROM' => 'RRDs.pm', # finds $VERSION 'DEFINE' => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}", - 'INC' => '-I../../src -I../../libraries/gd1.3', - # where to look for the necessary libraries + 'INC' => '-I../../src', # Perl will figure out which one is valid - 'depend' => {'RRDs.c' => "../../src/.libs/librrd_private.a"}, 'dynamic_lib' => {'OTHERLDFLAGS' => "$librrd -lm"}, - 'realclean' => {FILES => 't/demo?.rrd t/demo?.gif' } + 'realclean' => {FILES => 't/demo?.rrd t/demo?.png' } );