X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2Fperl%2FMakefile.PL;h=98f93d838cdc4344ef4665c20d84a08b1be9f2c2;hb=b525c9c88c988fa45593700d9a4846faa388922a;hp=c4061128970c635330f2c18166f7c222b0b0e6be;hpb=63879e1c82e777d708378fa059e727abcef69d11;p=liboping.git diff --git a/bindings/perl/Makefile.PL b/bindings/perl/Makefile.PL index c406112..98f93d8 100644 --- a/bindings/perl/Makefile.PL +++ b/bindings/perl/Makefile.PL @@ -8,6 +8,7 @@ my $OPING_PREFIX; my $OPING_CPPFLAGS; my $OPING_LDDLFLAGS; my $OPING_LIBS; +my $OPING_DEPEND; # TOP_BUILDDIR is set by liboping's build system, so Net::Oping can link with # the yet uninstalled library. @@ -80,6 +81,8 @@ if ($TOP_BUILDDIR) { $OPING_LDDLFLAGS .= qq( -Wl,-rpath -Wl,"$TARGET_LIBDIR"); } + + $OPING_DEPEND = { 'Oping.o' => "$TOP_BUILDDIR/src/liboping.la" }; } elsif ($OPING_PREFIX) { @@ -120,8 +123,9 @@ WriteMakefile( PREREQ_PM => {}, ($] >= 5.005 ? (ABSTRACT_FROM => 'lib/Net/Oping.pm', - AUTHOR => 'Florian Forster ') + AUTHOR => 'Florian Forster ') : ()), + ($OPING_DEPEND ? (depend => $OPING_DEPEND) : ()), LIBS => [$OPING_LIBS], ($OPING_LDDLFLAGS ? (LDDLFLAGS => "$OPING_LDDLFLAGS") : ()), DEFINE => '', @@ -138,4 +142,5 @@ sub is_system_libdir return (1); } } + return; }