From 310851e96b05849a8d942ebac4378713806f4430 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 17 Feb 2009 11:51:27 +0100 Subject: [PATCH] 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. --- bindings/perl/Makefile.PL | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.11.0