Lines 83-92
setup_features() {
Link Here
|
83 |
# This sets up automatic cross-distcc-fu according to |
83 |
# This sets up automatic cross-distcc-fu according to |
84 |
# https://wiki.gentoo.org/wiki/Distcc/Cross-Compiling |
84 |
# https://wiki.gentoo.org/wiki/Distcc/Cross-Compiling |
85 |
CHOST=$(portageq envvar CHOST) |
85 |
CHOST=$(portageq envvar CHOST) |
86 |
cd /usr/lib/distcc/bin |
86 |
cd /usr/libexec/distcc/bin |
87 |
rm cc gcc g++ c++ 2>/dev/null |
87 |
rm cc gcc g++ c++ 2>/dev/null |
88 |
echo -e '#!/bin/bash\nexec /usr/lib/distcc/bin/'${CHOST}'-g${0:$[-2]} "$@"' > ${CHOST}-wrapper |
88 |
echo -e '#!/bin/bash\nexec /usr/libexec/distcc/bin/'${CHOST}'-g${0:$[-2]} "$@"' > ${CHOST}-wrapper |
89 |
chmod a+x /usr/lib/distcc/bin/${CHOST}-wrapper |
89 |
chmod a+x /usr/libexec/distcc/bin/${CHOST}-wrapper |
90 |
for i in cc gcc g++ c++; do ln -s ${CHOST}-wrapper ${i}; done |
90 |
for i in cc gcc g++ c++; do ln -s ${CHOST}-wrapper ${i}; done |
91 |
fi |
91 |
fi |
92 |
|
92 |
|
Lines 172-181
setup_gcc(){
Link Here
|
172 |
cleanup_distcc() { |
172 |
cleanup_distcc() { |
173 |
rm -f /etc/distcc/hosts |
173 |
rm -f /etc/distcc/hosts |
174 |
for i in cc gcc c++ g++; do |
174 |
for i in cc gcc c++ g++; do |
175 |
rm -f /usr/lib/distcc/bin/${i} |
175 |
rm -f /usr/libexec/distcc/bin/${i} |
176 |
ln -s /usr/bin/distcc /usr/lib/distcc/bin/${i} |
176 |
ln -s /usr/bin/distcc /usr/libexec/distcc/bin/${i} |
177 |
done |
177 |
done |
178 |
rm -f /usr/lib/distcc/bin/*-wrapper |
178 |
rm -f /usr/libexec/distcc/bin/*-wrapper |
179 |
} |
179 |
} |
180 |
|
180 |
|
181 |
cleanup_icecream() { |
181 |
cleanup_icecream() { |