commit: 3530072da1b5cc5b1ac8cf5f0bf86cddce3949b7 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sat Jun 20 21:19:45 2020 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sat Jun 20 21:20:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3530072d
sys-devel/gcc-config: add new TOOLCHAIN_PREFIX= to live ebuild Bug: https://bugs.gentoo.org/728722 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> sys-devel/gcc-config/gcc-config-9999.ebuild | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/sys-devel/gcc-config/gcc-config-9999.ebuild b/sys-devel/gcc-config/gcc-config-9999.ebuild index e2c270403dd..f18c030a06c 100644 --- a/sys-devel/gcc-config/gcc-config-9999.ebuild +++ b/sys-devel/gcc-config/gcc-config-9999.ebuild @@ -21,19 +21,21 @@ IUSE="+native-symlinks" RDEPEND=">=sys-apps/gentoo-functions-0.10" -src_compile() { - emake CC="$(tc-getCC)" \ +_emake() { + emake \ PV="${PV}" \ SUBLIBDIR="$(get_libdir)" \ - USE_NATIVE_LINKS="$(usex native-symlinks)" + USE_NATIVE_LINKS="$(usex native-symlinks)" \ + TOOLCHAIN_PREFIX="${CHOST}-" \ + "$@" +} + +src_compile() { + _emake } src_install() { - emake \ - DESTDIR="${D}" \ - PV="${PV}" \ - SUBLIBDIR="$(get_libdir)" \ - install + _emake DESTDIR="${D}" install } pkg_postinst() {
