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.
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.
{
$OPING_LDDLFLAGS .= qq( -Wl,-rpath -Wl,"$TARGET_LIBDIR");
}
+
+ $OPING_DEPEND = { 'Oping.o' => "$TOP_BUILDDIR/src/liboping.la" };
}
elsif ($OPING_PREFIX)
{
? (ABSTRACT_FROM => 'lib/Net/Oping.pm',
AUTHOR => 'Florian Forster <octo@verplant.org>')
: ()),
+ ($OPING_DEPEND ? (depend => $OPING_DEPEND) : ()),
LIBS => [$OPING_LIBS],
($OPING_LDDLFLAGS ? (LDDLFLAGS => "$OPING_LDDLFLAGS") : ()),
DEFINE => '',
return (1);
}
}
+ return;
}