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

(-)a/eclass/toolchain.eclass (-4 / +6 lines)
Lines 2027-2036 do_gcc_config() { Link Here
2027
	local current_gcc_config="" current_specs="" use_specs=""
2027
	local current_gcc_config="" current_specs="" use_specs=""
2028
2028
2029
	current_gcc_config=$(env -i ROOT="${ROOT}" gcc-config -c ${CTARGET} 2>/dev/null)
2029
	current_gcc_config=$(env -i ROOT="${ROOT}" gcc-config -c ${CTARGET} 2>/dev/null)
2030
	if [[ -n ${current_gcc_config} ]] ; then
2030
	if [[ $? -eq 0 && -n "${current_gcc_config}" ]] ; then
2031
		# figure out which specs-specific config is active
2031
		# figure out which specs-specific config is active
2032
		current_specs=$(gcc-config -S ${current_gcc_config} | awk '{print $3}')
2032
		current_specs=$(gcc-config -S "${current_gcc_config}" | awk '{print $3}')
2033
		[[ -n ${current_specs} ]] && use_specs=-${current_specs}
2033
		if [[ $? -eq 0 && -n "${current_specs}" ]] ; then
2034
			use_specs="-${current_specs}"
2035
		fi
2034
	fi
2036
	fi
2035
	if [[ -n ${use_specs} ]] && \
2037
	if [[ -n ${use_specs} ]] && \
2036
	   [[ ! -e ${ROOT}/etc/env.d/gcc/${CTARGET}-${GCC_CONFIG_VER}${use_specs} ]]
2038
	   [[ ! -e ${ROOT}/etc/env.d/gcc/${CTARGET}-${GCC_CONFIG_VER}${use_specs} ]]
Lines 2043-2049 do_gcc_config() { Link Here
2043
		use_specs=""
2045
		use_specs=""
2044
	fi
2046
	fi
2045
2047
2046
	gcc-config ${CTARGET}-${GCC_CONFIG_VER}${use_specs}
2048
	gcc-config "${CTARGET}-${GCC_CONFIG_VER}${use_specs}"
2047
}
2049
}
2048
2050
2049
should_we_gcc_config() {
2051
should_we_gcc_config() {

Return to bug 547962