summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 038430e)
raw | patch | inline | side by side (parent: 038430e)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 17 Feb 2009 10:51:27 +0000 (11:51 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 17 Feb 2009 12:17:47 +0000 (13:17 +0100) |
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.
stand-alone Perl package), the module will now be rebuilt if the library has
been changed.
bindings/perl/Makefile.PL | patch | blob | history |
index c4061128970c635330f2c18166f7c222b0b0e6be..5525dd0172c75e8bc452312901d3a7c663cbf9ea 100644 (file)
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;
}