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

(-)a/gcc-config (-1 / +13 lines)
Lines 689-694 switch_profile() { Link Here
689
689
690
	update_wrappers ${CTARGET}
690
	update_wrappers ${CTARGET}
691
691
692
	#Update LTO plugin for GCC.  Supported as of binutils 2.25 (which is masked)
693
	local BFD_PLUGINS_DIR
694
	local LIBLTO_PLUGIN
695
	LIBLTO_PLUGIN="${EROOT}usr/libexec/gcc/${CTARGET}/${CC_COMP_VERSION}/liblto_plugin.so"
696
	if is_cross_compiler; then
697
		BFD_PLUGINS_DIR="${EROOT}usr/${CHOST}/${CTARGET}/binutils-bin/lib/bfd-plugins"
698
	else
699
		BFD_PLUGINS_DIR="${EROOT}usr/${CHOST}/binutils-bin/lib/bfd-plugins"
700
	fi
701
	ewarn "Updating LTO plugin symlink in ${BFD_PLUGINS_DIR}"
702
	mkdir -p "${BFD_PLUGINS_DIR}"
703
	ln -sf "${LIBLTO_PLUGIN}" "${BFD_PLUGINS_DIR}"
704
692
	if [[ ${ROOT} == "/" ]] && \
705
	if [[ ${ROOT} == "/" ]] && \
693
	   [[ ${FORCE} == "yes" || ${envd_changed} -gt 0 ]]
706
	   [[ ${FORCE} == "yes" || ${envd_changed} -gt 0 ]]
694
	then
707
	then
695
- 

Return to bug 630066