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

Collapse All | Expand All

(-)eclass/toolchain.eclass~superh4-gcc4-multilib (+21 lines)
Lines 1118-1127 gcc-library-configure() { Link Here
1118
		|| confgcc="${confgcc} --enable-multilib"
1118
		|| confgcc="${confgcc} --enable-multilib"
1119
}
1119
}
1120
1120
1121
gcc4-superh-multilib-configure() {
1122
	local mlliblist
1123
	if [[ ${CTARGET} == sh4-* ]] ; then
1124
		mliblist="m4,m4-nofpu,m4-single"
1125
	elif [[ ${CTARGET} == sh4a-* ]] ; then
1126
		mliblist="m4a,m4a-nofpu,m4a-single"
1127
	elif [[ ${CTARGET} == sh3-* ]] ; then
1128
		mliblist="m3,m3e"
1129
	elif [[ ${CTARGET} == sh2-* ]] ; then
1130
		mliblist="m2,m2e"
1131
	fi
1132
	if [[ x"${mliblist}" != x"" ]] ; then
1133
		confgcc="${confgcc} --enable-multilib --with-multilib-list=${mliblist}"
1134
		einfo "SuperH GCC4 multilib list: ${mliblist}"
1135
	elif [[ ${CTARGET} = *-linux* ]] ; then
1136
		confgcc="${confgcc} --disable-multilib"
1137
	fi
1138
}
1139
1121
gcc-compiler-configure() {
1140
gcc-compiler-configure() {
1122
	# multilib support
1141
	# multilib support
1123
	if is_multilib ; then
1142
	if is_multilib ; then
1124
		confgcc="${confgcc} --enable-multilib"
1143
		confgcc="${confgcc} --enable-multilib"
1144
	elif [[ ${CTARGET} == sh* ]] && tc_version_is_at_least "4.0" ; then
1145
		gcc4-superh-multilib-configure
1125
	elif [[ ${CTARGET} == *-linux* ]] ; then
1146
	elif [[ ${CTARGET} == *-linux* ]] ; then
1126
		confgcc="${confgcc} --disable-multilib"
1147
		confgcc="${confgcc} --disable-multilib"
1127
	fi
1148
	fi

Return to bug 140205