make sure the user is actually on gcc 5.4 before trying to upgrade all the libs to avoid a never ending rebuild cycle, ugh

This commit is contained in:
Rick Farina (Zero_Chaos) 2017-05-12 20:33:29 -04:00
parent 17b47a358d
commit 6071249d0e
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A

View file

@ -45,7 +45,9 @@ if [ -n "$(find /usr/include/python3.{3,4,5} -type f 2> /dev/null)" ]; then
fi
#taken from news item gcc-5-new-c++11-abi
revdep-rebuild --library 'libstdc++.so.6' -- --buildpkg=y --usepkg=n --exclude gcc
if [ "$(gcc-config -c)" = "x86_64-pc-linux-gnu-5.4.0" ]; then
revdep-rebuild --library 'libstdc++.so.6' -- --buildpkg=y --usepkg=n --exclude gcc
fi
if [ -n "${clst_target}" ]; then
emerge @changed-deps || safe_exit