1 |
--- |
2 |
eclass/toolchain.eclass | 7 +++++++ |
3 |
1 file changed, 7 insertions(+) |
4 |
|
5 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
6 |
index ae2db7f0a442..51b37c54ccbd 100644 |
7 |
--- a/eclass/toolchain.eclass |
8 |
+++ b/eclass/toolchain.eclass |
9 |
@@ -2067,6 +2067,9 @@ gcc_slot_java() { |
10 |
|
11 |
toolchain_pkg_postinst() { |
12 |
do_gcc_config |
13 |
+ if [[ -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then |
14 |
+ eselect compiler-shadow update all |
15 |
+ fi |
16 |
|
17 |
if ! is_crosscompile ; then |
18 |
echo |
19 |
@@ -2105,6 +2108,10 @@ toolchain_pkg_postinst() { |
20 |
} |
21 |
|
22 |
toolchain_pkg_postrm() { |
23 |
+ if [[ -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then |
24 |
+ eselect compiler-shadow clean all |
25 |
+ fi |
26 |
+ |
27 |
# to make our lives easier (and saner), we do the fix_libtool stuff here. |
28 |
# rather than checking SLOT's and trying in upgrade paths, we just see if |
29 |
# the common libstdc++.la exists in the ${LIBPATH} of the gcc that we are |
30 |
-- |
31 |
2.14.1 |