From: Sebastian Harl Date: Tue, 17 Feb 2009 10:51:27 +0000 (+0100) Subject: bindings/perl/Makefile.PL: Let the Perl module depend on liboping.la. X-Git-Tag: liboping-1.0.0~5 X-Git-Url: https://git.tokkee.org/?p=liboping.git;a=commitdiff_plain;h=310851e96b05849a8d942ebac4378713806f4430 bindings/perl/Makefile.PL: Let the Perl module depend on liboping.la. When building the Perl module from the liboping sources (instead of e.g. a stand-alone Perl package), the module will now be rebuilt if the library has been changed. --- diff --git a/bindings/perl/Makefile.PL b/bindings/perl/Makefile.PL index c406112..5525dd0 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) { @@ -122,6 +125,7 @@ WriteMakefile( ? (ABSTRACT_FROM => 'lib/Net/Oping.pm', 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; }