summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-06-20 22:19:45 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-06-20 22:20:09 +0100
commit3530072da1b5cc5b1ac8cf5f0bf86cddce3949b7 (patch)
tree4a153022ffd915d3125a9560d0cac681296c9d2d /sys-devel
parentprofiles: Mask broken x11-misc/sddm-0.18.1-r2 (diff)
downloadgentoo-3530072da1b5cc5b1ac8cf5f0bf86cddce3949b7.tar.gz
gentoo-3530072da1b5cc5b1ac8cf5f0bf86cddce3949b7.tar.bz2
gentoo-3530072da1b5cc5b1ac8cf5f0bf86cddce3949b7.zip
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@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc-config/gcc-config-9999.ebuild18
1 files 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 e2c270403dd3..f18c030a06c7 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() {