summaryrefslogtreecommitdiff
path: root/repo/system
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system')
-rw-r--r--repo/system/binutils.xibuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo/system/binutils.xibuild b/repo/system/binutils.xibuild
index bb3db9d..8a18c93 100644
--- a/repo/system/binutils.xibuild
+++ b/repo/system/binutils.xibuild
@@ -40,6 +40,6 @@ package() {
make -j1 DESTDIR=$PKG_DEST -j1 install
cp ../include/libiberty.h $PKG_DEST/usr/include
rm -fv $PKG_DEST/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a
- ln -sv ld.gold $PKG_DEST/usr/bin/ld
+ [ -e $PKG_DEST/usr/bin/ld ] && ln -sv ld.gold $PKG_DEST/usr/bin/ld
}