aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-config')
-rwxr-xr-xgcc-config18
1 files changed, 1 insertions, 17 deletions
diff --git a/gcc-config b/gcc-config
index b1cda70..b8f695f 100755
--- a/gcc-config
+++ b/gcc-config
@@ -42,9 +42,6 @@ PV="@PV@"
GENTOO_LIBDIR="@GENTOO_LIBDIR@"
[[ ${GENTOO_LIBDIR} == @*@ ]] && GENTOO_LIBDIR="lib"
-GENTOO_GCC_BACKUP_DIR="@GENTOO_GCC_BACKUP_DIR@"
-[[ ${GENTOO_GCC_BACKUP_DIR} == @*@ ]] && GENTOO_GCC_BACKUP_DIR="gcc-backup"
-
usage() {
cat <<-EOF
Usage: gcc-config [options] [CC Profile]
@@ -319,25 +316,12 @@ handle_split_usr() {
if is_same_mountpoint "${EROOT}/lib" "${ROOT}/${LDPATH}" ; then
local lib old_libs=0 saved_nullglob=$(shopt -p nullglob)
shopt -s nullglob
-
- # We relied on these copies until Sept 2019.
- # Can be removed in 2021.
for lib in "${EROOT}"/lib*/libgcc_s{.so*,*dylib} "${EROOT}"/lib*/libunwind.so.7* ; do
# If we previously had stuff in /, make sure ldconfig gets re-run.
einfo "Removing '${lib}'"
rm -f "${lib}"
old_libs=1
done
-
- for lib in \
- "${EROOT}"/lib*/"${GENTOO_GCC_BACKUP_DIR}"/libgcc_s.so.* \
- "${EROOT}"/lib*/"${GENTOO_GCC_BACKUP_DIR}"/libunwind.so.* ; do
- # If we previously had stuff in /, make sure ldconfig gets re-run.
- einfo "Removing '${lib}'"
- rm -f "${lib}"
- old_libs=1
- done
-
${saved_nullglob}
return ${old_libs}
fi
@@ -345,7 +329,7 @@ handle_split_usr() {
# Only bother with this stuff for the native ABI. We assume the user
# doesn't have critical binaries for non-native ABIs which is fair.
local gcclib
- local libdir="${EROOT}/${GENTOO_LIBDIR}/${GENTOO_GCC_BACKUP_DIR}"
+ local libdir="${EROOT}${GENTOO_LIBDIR}"
mkdir -p "${libdir}"/.gcc.config.new || return 0 # !?!?!
for gcclib in gcc_s unwind ; do
# This assumes that we always have the .so symlink,