toolchain.eclass: update active cross-gcc on uninstall
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 12 Jul 2019 22:17:03 +0000 (23:17 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 12 Jul 2019 23:37:33 +0000 (00:37 +0100)
commitbbc72dc75013128bb0a235010690db8b5cac7e30
treea3573fac7a1268482e720f34eaf85b016a066892
parent1b4b03f4084fc08475ccf1bdc3734e0ff9ed37df
toolchain.eclass: update active cross-gcc on uninstall

gcc-config-2 changed /usr/bin/gcc from a binary to symlink
in commit b907ef80bc421df23515afc4c306e4d96c67649
("Convert binary wrapper to a symlink wrapper.")

Before the above change /usr/bin/gcc worked in both cases
when active cross-gcc is being uninstalled. After the above
change symlink becomes dangling.

The change runs `gcc-config` more aggressively.

Reported-by: Pietro
Closes: https://bugs.gentoo.org/680360
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass