diff options
author | 2024-05-04 11:32:18 +0100 | |
---|---|---|
committer | 2024-05-10 18:27:05 +0100 | |
commit | 3a650e223a09b0616a4e619c73cc033478fb7a61 (patch) | |
tree | f6d3c4e123fc6aaaf66356f1b6daf85d568b9886 /eclass/perl-module.eclass | |
parent | perl-module.eclass: stop using ${D} for MakeMaker in src_configure (diff) | |
download | gentoo-3a650e223a09b0616a4e619c73cc033478fb7a61.tar.gz gentoo-3a650e223a09b0616a4e619c73cc033478fb7a61.tar.bz2 gentoo-3a650e223a09b0616a4e619c73cc033478fb7a61.zip |
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@gentoo.org>
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r-- | eclass/perl-module.eclass | 8 |
1 files changed, 8 insertions, 0 deletions
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' \ |