View | Details | Raw Unified
Collapse All | Expand All

(-) gcc-config-1.3.15 (-3 / +14 lines)
 Lines 163-171    Link Here 
		if [[ ${f} == /* ]] ; then
		if [[ ${f} == /* ]] ; then
			[[ ! -f ${f} ]] && ret=1 && break
			[[ ! -f ${f} ]] && ret=1 && break
		else
		else
			ret=1
			for p in ${paths} ; do
			for p in ${paths} ; do
				[[ ! -f ${p}/${f} ]] && ret=1 && break 2
				[[ -f ${p}/${f} ]] && ret=0 && break
			done
			done
			[[ ${ret} == 1 ]] && break
		fi
		fi
	done
	done
 Lines 206-211    Link Here 
		# Extract all LDPATH's for our CHOST
		# Extract all LDPATH's for our CHOST
		MY_LDPATH=""
		MY_LDPATH=""
		ONLY_MY_LDPATH=""
		for x in ${GCC_PROFILES} ; do
		for x in ${GCC_PROFILES} ; do
			if [[ -f ${x} ]] ; then
			if [[ -f ${x} ]] ; then
				source "${x}"
				source "${x}"
 Lines 223-228    Link Here 
				done
				done
				export IFS=${old_IFS}
				export IFS=${old_IFS}
			fi
			fi
			[[ -z ${ONLY_MY_LDPATH} ]] && ONLY_MY_LDPATH=${MY_LDPATH:1}
		done
		done
		MY_LDPATH="${MY_LDPATH:1}" # trim leading :
		MY_LDPATH="${MY_LDPATH:1}" # trim leading :
	fi
	fi
 Lines 245-252    Link Here 
		${AWK} '!/^(STDCXX_INCDIR|LDPATH|CC|CXX|CTARGET|GCCBITS|GCC_SPECS)=/ {print $0}' \
		${AWK} '!/^(STDCXX_INCDIR|LDPATH|CC|CXX|CTARGET|GCCBITS|GCC_SPECS)=/ {print $0}' \
			"${GCC_ENV_D}/${CC_COMP}" > "${ENV_D}/05gcc"
			"${GCC_ENV_D}/${CC_COMP}" > "${ENV_D}/05gcc"
		echo "LDPATH=\"${MY_LDPATH}\"" >> "${ENV_D}/05gcc"
		echo "LDPATH=\"${MY_LDPATH}\"" >> "${ENV_D}/05gcc"
		if [[ -n ${GCC_SPECS} ]] && files_exist ${MY_LDPATH} ${GCC_SPECS} ; then
		if [[ -n ${GCC_SPECS} ]] ; then
			echo "GCC_SPECS=\"${GCC_SPECS}\"" >> "${ENV_D}/05gcc"
			if files_exist ${ONLY_MY_LDPATH} ${GCC_SPECS} ; then
				echo "GCC_SPECS=\"${GCC_SPECS}\"" >> "${ENV_D}/05gcc"
			else
				echo
				ewarn "Your GCC spec configurations are broken."
				ewarn "Please re-emerge gcc."
				echo
			fi
		else
		else
			# People need to rebuild their gcc or setting GCC_SPECS to
			# People need to rebuild their gcc or setting GCC_SPECS to
			# "" will cause issues again :(
			# "" will cause issues again :(