commit: 3a650e223a09b0616a4e619c73cc033478fb7a61 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat May 4 10:32:18 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri May 10 17:27:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a650e22
perl-module.eclass: respect toolchain environment for MakeMaker based on https://bugs.gentoo.org/261375#c5 and https://metacpan.org/dist/ExtUtils-MakeMaker/view/lib/ExtUtils/MakeMaker.pm#OPTIMIZE. Bug: https://bugs.gentoo.org/261375 Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/perl-module.eclass | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index aed16b41df89..eb496e4a64df 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -289,6 +289,14 @@ perl-module_src_configure() { elif [[ -f Makefile.PL ]] ; then einfo "Using ExtUtils::MakeMaker" set -- \ + AR="$(tc-getAR)" \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC)" \ + CPP="$(tc-getCPP)" \ + NM="$(tc-getNM)" \ + RANLIB="$(tc-getRANLIB)" \ + OPTIMIZE="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ PREFIX="${EPREFIX}"/usr \ INSTALLDIRS=vendor \ INSTALLMAN3DIR='none' \