commit: bf4b9fcbb4ce432731ac90fbbb3bcf73beb51820
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 28 14:24:28 2024 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Jul 28 14:35:40 2024 +0000
URL:
https://gitweb.gentoo.org/proj/binutils-config.git/commit/?id=bf4b9fcb
Fix test for broken symlinks (-e is false, -h is true)
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
src/binutils-config | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/binutils-config b/src/binutils-config
index 519f1f0..43d38e5 100755
--- a/src/binutils-config
+++ b/src/binutils-config
@@ -191,7 +191,7 @@ switch_profile() {
# Some stages errorneously could not figure out CHOST
and installed
# symlinks into the path
${EROOT}/usr/libexec/gcc/${HOST}. These need
# to go away.
- if [[ -e "${EROOT}/usr/libexec/gcc/${HOST}/${x}" ]] ;
then
+ if [[ -h "${EROOT}/usr/libexec/gcc/${HOST}/${x}" ]] ;
then
rm -f "${EROOT}/usr/libexec/gcc/${HOST}/${x}"
bad_symlinks_removed="1"
fi