summaryrefslogtreecommitdiff
path: root/Debian
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-03-13 14:27:04 -0400
committerJoey Hess <joey@kitenet.net>2012-03-13 14:27:04 -0400
commit770ae5500e6e459b32c92a2d00f099249725323e (patch)
tree984a83cd06efca69f23fa5ef721a16ae4139f84b /Debian
parentd895fd3c91309e31a52a30f04b3a04da2fc7e3a4 (diff)
Also include CFLAGS in ld line for perl. Closes: #662666
Diffstat (limited to 'Debian')
-rw-r--r--Debian/Debhelper/Buildsystem/perl_build.pm2
-rw-r--r--Debian/Debhelper/Buildsystem/perl_makemaker.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/Debian/Debhelper/Buildsystem/perl_build.pm b/Debian/Debhelper/Buildsystem/perl_build.pm
index 35a23d6..671bca5 100644
--- a/Debian/Debhelper/Buildsystem/perl_build.pm
+++ b/Debian/Debhelper/Buildsystem/perl_build.pm
@@ -46,7 +46,7 @@ sub configure {
push @flags, "config=optimize=$ENV{CFLAGS} $ENV{CPPFLAGS}";
}
if ($ENV{LDFLAGS} && ! compat(8)) {
- push @flags, "config=ld=$Config{ld} $ENV{LDFLAGS}";
+ push @flags, "config=ld=$Config{ld} $ENV{CFLAGS} $ENV{LDFLAGS}";
}
$this->do_perl("Build.PL", "installdirs=vendor", @flags, @_);
}
diff --git a/Debian/Debhelper/Buildsystem/perl_makemaker.pm b/Debian/Debhelper/Buildsystem/perl_makemaker.pm
index 342e0eb..60cda3d 100644
--- a/Debian/Debhelper/Buildsystem/perl_makemaker.pm
+++ b/Debian/Debhelper/Buildsystem/perl_makemaker.pm
@@ -51,7 +51,7 @@ sub configure {
push @flags, "OPTIMIZE=$ENV{CFLAGS} $ENV{CPPFLAGS}";
}
if ($ENV{LDFLAGS} && ! compat(8)) {
- push @flags, "LD=$Config{ld} $ENV{LDFLAGS}";
+ push @flags, "LD=$Config{ld} $ENV{CFLAGS} $ENV{LDFLAGS}";
}
$this->doit_in_sourcedir("perl", "Makefile.PL", "INSTALLDIRS=vendor",