summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-config')
-rwxr-xr-xgcc-config7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc-config b/gcc-config
index aefdbc4..92e9014 100755
--- a/gcc-config
+++ b/gcc-config
@@ -656,14 +656,15 @@ switch_profile() {
fi
# Punt old files; maybe globs too much, but oh well
+ # 'NATIVE' and '.NATIVE' were used by gcc-wrapper before Aug 2018
+ # and are not used as wrapper is removed.
+ # '.NATIVE' was created before Sept 2019.
+ # We clean up both for now. Should be safe to remove in 2021.
rm -f \
"${GCC_ENV_D}/NATIVE" "${GCC_ENV_D}/.NATIVE" \
"${ENV_D}/05gcc" "${ENV_D}/05gcc-${CTARGET}" \
"${ENV_D}/05gcc-${CTARGET}"-* "${GCC_ENV_D}/config-${CTARGET}"-*
- # Help out the gcc wrapper
- ln -sf ${CC_COMP} "${GCC_ENV_D}/.NATIVE"
-
# Relocate random crap
local x libdir pkgconfdir
local mver=${CC_COMP_VERSION:0:3}