summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Buildsystem
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-06-30 13:10:20 -0400
committerJoey Hess <joey@kitenet.net>2013-06-30 13:10:20 -0400
commitf9ac21865fa06049670fef728474c2c1ba3409bf (patch)
treede2eadb4cf49347597f67505f5b38f586761a627 /Debian/Debhelper/Buildsystem
parent510475f6940a3dd677a8da252bbb8525c3aceb17 (diff)
perl_build: Use -- long option names, for compatability with Module::Build::Tiny. Closes: #714544 (Thanks, gregor herrmann)
Diffstat (limited to 'Debian/Debhelper/Buildsystem')
-rw-r--r--Debian/Debhelper/Buildsystem/perl_build.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/Debian/Debhelper/Buildsystem/perl_build.pm b/Debian/Debhelper/Buildsystem/perl_build.pm
index 671bca5..bfe1c08 100644
--- a/Debian/Debhelper/Buildsystem/perl_build.pm
+++ b/Debian/Debhelper/Buildsystem/perl_build.pm
@@ -43,12 +43,12 @@ sub configure {
my @flags;
$ENV{PERL_MM_USE_DEFAULT}=1;
if ($ENV{CFLAGS} && ! compat(8)) {
- push @flags, "config=optimize=$ENV{CFLAGS} $ENV{CPPFLAGS}";
+ push @flags, "--config", "optimize=$ENV{CFLAGS} $ENV{CPPFLAGS}";
}
if ($ENV{LDFLAGS} && ! compat(8)) {
- push @flags, "config=ld=$Config{ld} $ENV{CFLAGS} $ENV{LDFLAGS}";
+ push @flags, "--config", "ld=$Config{ld} $ENV{CFLAGS} $ENV{LDFLAGS}";
}
- $this->do_perl("Build.PL", "installdirs=vendor", @flags, @_);
+ $this->do_perl("Build.PL", "--installdirs", "vendor", @flags, @_);
}
sub build {
@@ -64,13 +64,13 @@ sub test {
sub install {
my $this=shift;
my $destdir=shift;
- $this->do_perl("Build", "install", "destdir=$destdir", "create_packlist=0", @_);
+ $this->do_perl("Build", "install", "--destdir", "$destdir", "--create_packlist", 0, @_);
}
sub clean {
my $this=shift;
if (-e $this->get_sourcepath("Build")) {
- $this->do_perl("Build", "--allow_mb_mismatch", 1, "distclean", @_);
+ $this->do_perl("Build", "distclean", "--allow_mb_mismatch", 1, @_);
}
}