summaryrefslogtreecommitdiff
path: root/repo/system/binutils.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-19 21:29:49 +0000
committerdavidovski <david@davidovski.xyz>2022-01-19 21:29:49 +0000
commit77746490c428ef55149664ca0cd5578444877e5b (patch)
tree6d102a9a788f981c72863ec272be64eaa7db7f84 /repo/system/binutils.xibuild
parent9e3881d63d385deb8f6b1f8718eaa1e8b633dd58 (diff)
will not create symlink if exists
Diffstat (limited to 'repo/system/binutils.xibuild')
-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
}