View | Details | Raw Unified
Collapse All | Expand All

(-) /tmp/gcc-config (-3 / +3 lines)
 Lines 249-263    Link Here 
	umask 022
	umask 022
	# Find the bin wrapper
	# Find the bin wrapper
	local wrapper
	local wrapper
	for wrapper in GENTOO_LIBDIR lib lib64 lib32 lib ; do
	for wrapper in lib lib lib64 lib32 lib ; do
		wrapper="${ROOT}usr/${wrapper}/misc/gcc-config"
		wrapper="${ROOT}usr/${wrapper}/misc/gcc-config"
		[[ -e ${wrapper} ]] && break
		[[ -e ${wrapper} ]] && break
	done
	done
	# Update the wrappers for this profile
	# Update the wrappers for this profile
	local native="gcc cpp cc c++ g++ f77 g77 gcj"
	local native="gcc cpp cc c++ g++ f77 g77 gcj gcjh gfortran"
	is_cross_compiler && native=""
	is_cross_compiler && native=""
	for x in ${native} ${CTARGET}-{cpp,gcc,c++,g++,f77,g77,gcj} ; do
	for x in ${native} ${CTARGET}-{cpp,gcc,c++,g++,f77,g77,gcj,gcjh,gfortran} ; do
		# Make sure we have no stale wrappers
		# Make sure we have no stale wrappers
		${RM} -f "${ROOT}/usr/bin/${x}"
		${RM} -f "${ROOT}/usr/bin/${x}"
		[[ ${x:${#x}-3} == "gcc" || ${x:${#x}-3} == "g++" ]] \
		[[ ${x:${#x}-3} == "gcc" || ${x:${#x}-3} == "g++" ]] \