commit: 41fa2e689f53efe62986696bf4324aca16bc874a Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sat Jul 24 09:21:45 2021 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sat Jul 24 09:21:59 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41fa2e68
sys-libs/libstdc++-v3: use user's AR and NM Reported-by: Agostino Sarubbo Closes: https://bugs.gentoo.org/724726 Closes: https://bugs.gentoo.org/792987 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r3.ebuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r3.ebuild b/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r3.ebuild index 2e11d8135f0..0bf6a4ade8c 100644 --- a/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r3.ebuild +++ b/sys-libs/libstdc++-v3/libstdc++-v3-3.3.6-r3.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit epatch flag-o-matic libtool multilib +inherit epatch flag-o-matic libtool multilib toolchain-funcs PATCH_VER="1.10" @@ -151,6 +151,8 @@ src_prepare() { "${S}"/gcc/config/i386/t-linux64 \ || die "sed failed!" fi + + tc-export AR CC RANLIB NM } src_configure() { @@ -175,12 +177,17 @@ src_configure() { } src_compile() { - emake -C "${WORKDIR}"/build all-target-libstdc++-v3 + emake \ + -C "${WORKDIR}"/build all-target-libstdc++-v3 \ + AR="$(tc-getAR)" \ + NM="$(tc-getNM)" } src_install() { emake -j1 \ -C "${WORKDIR}"/build \ + AR="$(tc-getAR)" \ + NM="$(tc-getNM)" \ DESTDIR="${D}" \ install-target-libstdc++-v3
