diff options
author | gregor herrmann <gregoa@debian.org> | 2011-09-30 13:40:27 +0200 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-09-30 13:02:12 -0400 |
commit | a39dc4abe1b642c999dfff7029d991717d62a3c1 (patch) | |
tree | 215d8708a2287d11b080b4507908b127cc361991 /Debian/Debhelper/Buildsystem | |
parent | 3805701ed61c4712ac74f9c70ec021f2adf10b45 (diff) |
Pass CFLAGS also to perl_build.
Closes: 497653
Diffstat (limited to 'Debian/Debhelper/Buildsystem')
-rw-r--r-- | Debian/Debhelper/Buildsystem/perl_build.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Debian/Debhelper/Buildsystem/perl_build.pm b/Debian/Debhelper/Buildsystem/perl_build.pm index deb9a379..724e1e07 100644 --- a/Debian/Debhelper/Buildsystem/perl_build.pm +++ b/Debian/Debhelper/Buildsystem/perl_build.pm @@ -7,6 +7,7 @@ package Debian::Debhelper::Buildsystem::perl_build; use strict; +use Debian::Debhelper::Dh_Lib qw(compat); use base 'Debian::Debhelper::Buildsystem'; sub DESCRIPTION { @@ -38,8 +39,12 @@ sub new { sub configure { my $this=shift; + my @flags; $ENV{PERL_MM_USE_DEFAULT}=1; - $this->do_perl("Build.PL", "installdirs=vendor", @_); + if ($ENV{CFLAGS} && ! compat(8)) { + push @flags, "config=optimize=$ENV{CFLAGS}"; + } + $this->do_perl("Build.PL", "installdirs=vendor", @flags, @_); } sub build { |