Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 266564 | Differences between
and this patch

Collapse All | Expand All

(-)toolchain.eclass (-13 / +8 lines)
Lines 1390-1403 gcc_do_configure() { Link Here
1390
	fi
1390
	fi
1391
	[[ ${GCCMAJOR}.${GCCMINOR} < 3.4 ]] && confgcc="${confgcc} --disable-libunwind-exceptions"
1391
	[[ ${GCCMAJOR}.${GCCMINOR} < 3.4 ]] && confgcc="${confgcc} --disable-libunwind-exceptions"
1392
1392
1393
	# create a sparc*linux*-{gcc,g++} that can handle -m32 and -m64 (biarch)
1393
	if [[ ${CTARGET} == *linux* ]] && is_multilib &&
1394
	if [[ ${CTARGET} == sparc*linux* ]] \
1394
		[[ ${GCCMAJOR}.${GCCMINOR} > 4.2 ]] ; then
1395
		&& is_multilib \
1395
			case $(tc-arch) in
1396
		&& [[ ${GCCMAJOR}.${GCCMINOR} > 4.2 ]]
1396
				sparc|x86) confgcc="${confgcc} --enable-targets=all"
1397
	then
1397
				;;
1398
		confgcc="${confgcc} --enable-targets=all"
1398
			esac
1399
	fi
1399
	fi
1400
1400
1401
1401
	tc_version_is_at_least 4.3 && set -- "$@" \
1402
	tc_version_is_at_least 4.3 && set -- "$@" \
1402
		--with-bugurl=http://bugs.gentoo.org/ \
1403
		--with-bugurl=http://bugs.gentoo.org/ \
1403
		--with-pkgversion="${BRANDING_GCC_PKGVERSION}"
1404
		--with-pkgversion="${BRANDING_GCC_PKGVERSION}"
Lines 2497-2509 fix_libtool_libdir_paths() { Link Here
2497
2498
2498
is_multilib() {
2499
is_multilib() {
2499
	[[ ${GCCMAJOR} < 3 ]] && return 1
2500
	[[ ${GCCMAJOR} < 3 ]] && return 1
2500
	case ${CTARGET} in
2501
	has_multilib_profile || use multilib
2501
		mips64*|powerpc64*|s390x*|sparc*|x86_64*)
2502
			has_multilib_profile || use multilib ;;
2503
		*-*-solaris*) use multilib ;;
2504
		*-apple-darwin*) use multilib ;;
2505
		*)	false ;;
2506
	esac
2507
}
2502
}
2508
2503
2509
is_cxx() {
2504
is_cxx() {

Return to bug 266564