aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAric Belsito <lluixhi@gmail.com>2017-09-05 12:12:38 -0700
committerAric Belsito <lluixhi@gmail.com>2017-09-05 12:12:38 -0700
commit57dbfdd6d2ed16648783e4bc61637c8d1f7e04d4 (patch)
tree521be177de38f88fc7e5c41b2cf18c6e5dbac029
parentdev-qt/qtwebkit: sync with upstream (diff)
downloadmusl-57dbfdd6.tar.gz
musl-57dbfdd6.tar.bz2
musl-57dbfdd6.zip
toolchain.eclass: sync with upstream
-rw-r--r--eclass/toolchain.eclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index b996315a..a07863c6 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2070,6 +2070,9 @@ gcc_slot_java() {
toolchain_pkg_postinst() {
do_gcc_config
+ if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
+ eselect compiler-shadow update all
+ fi
if ! is_crosscompile ; then
echo
@@ -2108,6 +2111,10 @@ toolchain_pkg_postinst() {
}
toolchain_pkg_postrm() {
+ if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
+ eselect compiler-shadow clean all
+ fi
+
# to make our lives easier (and saner), we do the fix_libtool stuff here.
# rather than checking SLOT's and trying in upgrade paths, we just see if
# the common libstdc++.la exists in the ${LIBPATH} of the gcc that we are