From: Sergei Trofimovich Date: Fri, 22 May 2020 09:47:00 +0000 (+0100) Subject: sys-devel/gcc-config: add USE=+native-symlinks flag X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bcf1494c50e606bb0ac0a7b49afeaa9c2b2c2d52;p=gentoo.git sys-devel/gcc-config: add USE=+native-symlinks flag This flag guards presence of 'cc', 'gcc' and friends. Bug: https://bugs.gentoo.org/724454 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich --- diff --git a/sys-devel/gcc-config/gcc-config-9999.ebuild b/sys-devel/gcc-config/gcc-config-9999.ebuild index c27a2a1f2a82..b599996f2b31 100644 --- a/sys-devel/gcc-config/gcc-config-9999.ebuild +++ b/sys-devel/gcc-config/gcc-config-9999.ebuild @@ -18,14 +18,15 @@ DESCRIPTION="Utility to manage compilers" HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/" LICENSE="GPL-2" SLOT="0" -IUSE="" +IUSE="+native-symlinks" RDEPEND=">=sys-apps/gentoo-functions-0.10" src_compile() { emake CC="$(tc-getCC)" \ PV="${PV}" \ - SUBLIBDIR="$(get_libdir)" + SUBLIBDIR="$(get_libdir)" \ + USE_NATIVE_LINKS="$(usex native-symlinks)" } src_install() { diff --git a/sys-devel/gcc-config/metadata.xml b/sys-devel/gcc-config/metadata.xml index e396f3755977..33e9604b0414 100644 --- a/sys-devel/gcc-config/metadata.xml +++ b/sys-devel/gcc-config/metadata.xml @@ -1,8 +1,11 @@ - - toolchain@gentoo.org - Gentoo Toolchain Project - + + toolchain@gentoo.org + Gentoo Toolchain Project + + + Install native symlinks like 'gcc' or 'g++' to /usr/bin. Otherwise keep only ${CTARGET}-gcc and friends. +