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

Collapse All | Expand All

(-)binutils-config-5.orig (-4 / +11 lines)
Lines 143-155 switch_profile() { Link Here
143
		dstlib=${ROOT}/usr/${HOST}/${TARGET}/lib
143
		dstlib=${ROOT}/usr/${HOST}/${TARGET}/lib
144
	fi
144
	fi
145
	# When upgrading, we need to clean up ldscripts and libs.
145
	# When upgrading, we need to clean up ldscripts and libs.
146
	# Don't symlink back in the libs -- the binutils-lib package handles
147
	# these now.
148
	# TODO: Stop requiring even the ldscripts symlink.
149
	mkdir -p "${dstlib}"
146
	mkdir -p "${dstlib}"
150
	rm -rf "${ROOT}/${BINPATH_LINKS}"/ldscripts
147
	rm -rf "${ROOT}/${BINPATH_LINKS}"/ldscripts
151
	atomic_ln "${LIBPATH}/ldscripts" "${dstlib}" "ldscripts"
148
	atomic_ln "${LIBPATH}/ldscripts" "${dstlib}" "ldscripts"
152
	find -L "${dstlib}" -xtype l -name 'lib*' -exec rm -f {} +
149
	if [[ ${TARGET} != ${HOST} ]] ; then
150
		find -L "${dstlib}" -type l -exec rm -v {} +
151
		for x in lib* ; do
152
			atomic_ln "${LIBPATH}/${x}" "${dstlib}" "${x}"
153
		done
154
	else
155
		# Don't symlink back in the libs -- the binutils-lib package handles
156
		# these now.
157
		# TODO: Stop requiring even the ldscripts symlink.
158
		find -L "${dstlib}" -xtype l -name 'lib*' -exec rm -f {} +
159
	fi
153
160
154
	#
161
	#
155
	# Clean out old generated include symlinks
162
	# Clean out old generated include symlinks

Return to bug 562460