Lines 99-104
Link Here
|
99 |
chmod a+x /usr/lib/distcc/bin/${CHOST}-wrapper |
99 |
chmod a+x /usr/lib/distcc/bin/${CHOST}-wrapper |
100 |
for i in cc gcc g++ c++; do ln -s ${CHOST}-wrapper ${i}; done |
100 |
for i in cc gcc g++ c++; do ln -s ${CHOST}-wrapper ${i}; done |
101 |
fi |
101 |
fi |
|
|
102 |
|
103 |
if [ -n "${clst_ICECREAM}" ] |
104 |
then |
105 |
clst_root_path=/ run_emerge --oneshot --nodeps sys-devel/icecream || exit 1 |
106 |
|
107 |
# This sets up automatic cross-icecc-fu according to |
108 |
# http://gentoo-wiki.com/HOWTO_Setup_An_ICECREAM_Compile_Cluster#Icecream_and_cross-compiling |
109 |
CHOST=$(portageq envvar CHOST) |
110 |
LIBDIR=$(get_libdir) |
111 |
cd /usr/${LIBDIR}/icecc/bin |
112 |
rm cc gcc g++ c++ 2>/dev/null |
113 |
echo -e '#!/bin/bash\nexec /usr/'${LIBDIR}'/icecc/bin/'${CHOST}'-g${0:$[-2]} "$@"' > ${CHOST}-wrapper |
114 |
chmod a+x ${CHOST}-wrapper |
115 |
for i in cc gcc g++ c++; do ln -s ${CHOST}-wrapper ${i}; done |
116 |
export PATH="/usr/lib/icecc/bin:${PATH}" |
117 |
export PREROOTPATH="/usr/lib/icecc/bin" |
118 |
fi |
102 |
} |
119 |
} |
103 |
|
120 |
|
104 |
setup_myemergeopts(){ |
121 |
setup_myemergeopts(){ |
Lines 166-171
Link Here
|
166 |
rm /usr/lib/distcc/bin/*-wrapper |
183 |
rm /usr/lib/distcc/bin/*-wrapper |
167 |
} |
184 |
} |
168 |
|
185 |
|
|
|
186 |
cleanup_icecream() { |
187 |
LIBDIR=$(get_libdir) |
188 |
for i in cc gcc c++ g++; do |
189 |
rm /usr/${LIBDIR}/icecc/bin/${i} |
190 |
ln -s /usr/bin/icecc /usr/${LIBDIR}/icecc/bin/${i} |
191 |
done |
192 |
rm /usr/${LIBDIR}/icecc/bin/*-wrapper |
193 |
} |
194 |
|
169 |
update_env_settings(){ |
195 |
update_env_settings(){ |
170 |
/usr/sbin/env-update |
196 |
/usr/sbin/env-update |
171 |
source /etc/profile |
197 |
source /etc/profile |