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

Collapse All | Expand All

(-)targets/support/chroot-functions.sh.old (+13 lines)
Lines 60-65 Link Here
60
		#fi
60
		#fi
61
		mkdir -p /etc/distcc
61
		mkdir -p /etc/distcc
62
		echo "${clst_distcc_hosts}" > /etc/distcc/hosts
62
		echo "${clst_distcc_hosts}" > /etc/distcc/hosts
63
64
		# This sets up automatic cross-distcc-fu according to http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
65
		CHOST=$(portageq envvar CHOST)
66
		cd /usr/lib/distcc/bin
67
		rm cc gcc g++ c++
68
		ln -s /usr/bin/distcc ${CHOST}-cc
69
		echo -e "#!/bin/bash\nexec /usr/lib/distcc/bin/${CHOST}-${0##*/} \"$@\"" > ${CHOST}-wrapper
70
		chmod a+x /usr/lib/distcc/bin/${CHOST}-wrapper
71
		ln -s ${CHOST}-wrapper cc
72
		ln -s ${CHOST}-wrapper gcc
73
		ln -s ${CHOST}-wrapper g++
74
		ln -s ${CHOST}-wrapper c++
63
	fi
75
	fi
64
}
76
}
65
77
Lines 110-115 Link Here
110
122
111
cleanup_distcc() {
123
cleanup_distcc() {
112
	rm -rf /etc/distcc/hosts
124
	rm -rf /etc/distcc/hosts
125
	rm -rf /usr/lib/distcc/bin
113
}
126
}
114
127
115
update_env_settings(){
128
update_env_settings(){

Return to bug 120076