diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 10:17:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 10:17:46 +0000 |
commit | 9b0f0a6d1c8af9c30f5c490d388c3ac8ebbe573c (patch) | |
tree | 0efa5f117a62e355d968e9876a51c4e543f0a984 /lib/Debian/Debhelper/Buildsystem | |
parent | Adding upstream version 13.17. (diff) | |
download | debhelper-9b0f0a6d1c8af9c30f5c490d388c3ac8ebbe573c.tar.xz debhelper-9b0f0a6d1c8af9c30f5c490d388c3ac8ebbe573c.zip |
Adding upstream version 13.18.upstream/13.18
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/Debian/Debhelper/Buildsystem')
-rw-r--r-- | lib/Debian/Debhelper/Buildsystem/perl_build.pm | 8 | ||||
-rw-r--r-- | lib/Debian/Debhelper/Buildsystem/perl_makemaker.pm | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/Debian/Debhelper/Buildsystem/perl_build.pm b/lib/Debian/Debhelper/Buildsystem/perl_build.pm index 8752905..056210e 100644 --- a/lib/Debian/Debhelper/Buildsystem/perl_build.pm +++ b/lib/Debian/Debhelper/Buildsystem/perl_build.pm @@ -8,7 +8,7 @@ package Debian::Debhelper::Buildsystem::perl_build; use strict; use warnings; -use Debian::Debhelper::Dh_Lib qw(compat is_cross_compiling perl_cross_incdir warning); +use Debian::Debhelper::Dh_Lib qw(compat is_cross_compiling perl_cross_incdir warning dpkg_architecture_value); use parent qw(Debian::Debhelper::Buildsystem); use Config; @@ -16,6 +16,11 @@ sub DESCRIPTION { "Perl Module::Build (Build.PL)" } +sub _get_pkgconf { + my $toolprefix = is_cross_compiling() ? dpkg_architecture_value("DEB_HOST_GNU_TYPE") . "-" : ""; + return "/usr/bin/" . $toolprefix . "pkg-config"; +} + sub check_auto_buildable { my ($this, $step) = @_; @@ -58,6 +63,7 @@ sub configure { if ($ENV{CFLAGS} && ! compat(8)) { push @flags, "--config", "optimize=$ENV{CFLAGS} $ENV{CPPFLAGS}"; } + $ENV{"PKG_CONFIG"} = _get_pkgconf() if not exists($ENV{"PKG_CONFIG"}); if ($ENV{LDFLAGS} && ! compat(8)) { my $ld = $Config{ld}; if (is_cross_compiling()) { diff --git a/lib/Debian/Debhelper/Buildsystem/perl_makemaker.pm b/lib/Debian/Debhelper/Buildsystem/perl_makemaker.pm index efb01d2..7bc81ef 100644 --- a/lib/Debian/Debhelper/Buildsystem/perl_makemaker.pm +++ b/lib/Debian/Debhelper/Buildsystem/perl_makemaker.pm @@ -8,7 +8,7 @@ package Debian::Debhelper::Buildsystem::perl_makemaker; use strict; use warnings; -use Debian::Debhelper::Dh_Lib qw(compat is_cross_compiling perl_cross_incdir warning); +use Debian::Debhelper::Dh_Lib qw(compat is_cross_compiling perl_cross_incdir warning dpkg_architecture_value); use parent qw(Debian::Debhelper::Buildsystem::makefile); use Config; |