Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 610456
Collapse All | Expand All

(-)a/eclass/toolchain.eclass (-12 / +7 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2016 Gentoo Foundation
1
# Copyright 1999-2018 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
4
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
Lines 23-36 fi Link Here
23
23
24
FEATURES=${FEATURES/multilib-strict/}
24
FEATURES=${FEATURES/multilib-strict/}
25
25
26
EXPORTED_FUNCTIONS="pkg_setup src_unpack src_compile src_test src_install pkg_postinst pkg_postrm"
27
case ${EAPI:-0} in
26
case ${EAPI:-0} in
28
	0|1)    die "Need to upgrade to at least EAPI=2";;
27
	0|1|2|3) die "Need to upgrade to at least EAPI=4" ;;
29
	2|3)    EXPORTED_FUNCTIONS+=" src_prepare src_configure" ;;
28
	4*|5*)   ;;
30
	4*|5*)  EXPORTED_FUNCTIONS+=" pkg_pretend src_prepare src_configure" ;;
29
	*)       die "I don't speak EAPI ${EAPI}." ;;
31
	*)      die "I don't speak EAPI ${EAPI}."
32
esac
30
esac
33
EXPORT_FUNCTIONS ${EXPORTED_FUNCTIONS}
31
EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure \
32
	src_compile src_test src_install pkg_postinst pkg_postrm
34
33
35
#---->> globals <<----
34
#---->> globals <<----
36
35
Lines 390-399 toolchain_pkg_pretend() { Link Here
390
#---->> pkg_setup <<----
389
#---->> pkg_setup <<----
391
390
392
toolchain_pkg_setup() {
391
toolchain_pkg_setup() {
393
	case ${EAPI} in
394
	2|3) toolchain_pkg_pretend ;;
395
	esac
396
397
	# we dont want to use the installed compiler's specs to build gcc
392
	# we dont want to use the installed compiler's specs to build gcc
398
	unset GCC_SPECS
393
	unset GCC_SPECS
399
	unset LANGUAGES #265283
394
	unset LANGUAGES #265283
Lines 998-1004 toolchain_src_configure() { Link Here
998
					--disable-threads
993
					--disable-threads
999
					--without-headers
994
					--without-headers
1000
				)
995
				)
1001
			elif built_with_use --hidden --missing false ${CATEGORY}/${needed_libc} crosscompile_opts_headers-only ; then
996
			elif has_version "${CATEGORY}/${needed_libc}[crosscompile_opts_headers-only(-)]" ; then
1002
				confgcc+=(
997
				confgcc+=(
1003
					"${confgcc_no_libc[@]}"
998
					"${confgcc_no_libc[@]}"
1004
					--with-sysroot="${PREFIX}"/${CTARGET}
999
					--with-sysroot="${PREFIX}"/${CTARGET}

Return to bug 610456