toolchain.eclass: install gcc-5 go binary as go-5 #567806

This commit is contained in:
Zac Medico
2016-03-19 17:16:11 -07:00
parent 5126628960
commit 3f171e23da
+4 -2
View File
@@ -1684,10 +1684,12 @@ toolchain_src_install() {
ln -sf ${CTARGET}-${x} ${CTARGET}-${x}-${GCC_CONFIG_VER}
fi
done
# Clear out the main go binaries as we don't want to clobber dev-lang/go
# Rename the main go binaries as we don't want to clobber dev-lang/go
# when gcc-config runs. #567806
if tc_version_is_at_least 5 && is_go ; then
rm -f go gofmt
for x in go gofmt; do
mv ${x} ${x}-${GCCMAJOR} || die
done
fi
# Now do the fun stripping stuff