summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-05-04 09:39:43 +0100
committerSam James <sam@gentoo.org>2024-05-10 18:27:03 +0100
commit0831622e109dde6f781219c904f7b275c1b8877f (patch)
treef113d395dac389413281c5d6e5fa2ca4c7947256 /eclass/perl-module.eclass
parentdev-dotnet/dotnet-sdk: check for locales in pkg_pretend (diff)
downloadgentoo-0831622e109dde6f781219c904f7b275c1b8877f.tar.gz
gentoo-0831622e109dde6f781219c904f7b275c1b8877f.tar.bz2
gentoo-0831622e109dde6f781219c904f7b275c1b8877f.zip
perl-module.eclass: respect toolchain variables for Module::Build via --config ...
Based off https://github.com/Perl-Toolchain-Gang/Module-Build/blob/a2ecdf98c25af7dfc7070280232513e8ccec4986/lib/Module/Build/Cookbook.pm#L63. Bug: https://bugs.gentoo.org/261375 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r--eclass/perl-module.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index 029fc78e4a85..fd1af4f945b1 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: perl-module.eclass
@@ -274,6 +274,15 @@ perl-module_src_configure() {
--libdoc= \
--destdir="${D}" \
--create_packlist=1 \
+ --config ar="$(tc-getAR)" \
+ --config cc="$(tc-getCC)" \
+ --config ld="$(tc-getCC)" \
+ --config cpp="$(tc-getCPP)" \
+ --config nm="$(tc-getNM)" \
+ --config ranlib="$(tc-getRANLIB)" \
+ --config ccflags="${CFLAGS}" \
+ --config optimize="${CFLAGS}" \
+ --config ldflags="${LDFLAGS}" \
"${myconf_local[@]}"
einfo "perl Build.PL" "$@"
perl Build.PL "$@" <<< "${pm_echovar}" \