diff options
author | Joey Hess <joey@kitenet.net> | 2013-06-30 13:10:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-06-30 13:10:20 -0400 |
commit | f9ac21865fa06049670fef728474c2c1ba3409bf (patch) | |
tree | de2eadb4cf49347597f67505f5b38f586761a627 /Debian | |
parent | 510475f6940a3dd677a8da252bbb8525c3aceb17 (diff) | |
download | debhelper-f9ac21865fa06049670fef728474c2c1ba3409bf.tar.gz |
perl_build: Use -- long option names, for compatability with Module::Build::Tiny. Closes: #714544 (Thanks, gregor herrmann)
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Buildsystem/perl_build.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Debian/Debhelper/Buildsystem/perl_build.pm b/Debian/Debhelper/Buildsystem/perl_build.pm index 671bca57..bfe1c08e 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, @_); } } |