aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2018-07-11 22:51:19 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-07-16 16:41:22 +0200
commitefa6946d4b43b8a07a7d0e4dcbfe1bd31503e1d9 (patch)
treebae75a78f3a8b5bd7c52e7d4d82135708c272e72
parentc5dec11d71ac7436892749b40394daead5752524 (diff)
downloadbuildroot-efa6946d4b43b8a07a7d0e4dcbfe1bd31503e1d9.tar.gz
buildroot-efa6946d4b43b8a07a7d0e4dcbfe1bd31503e1d9.tar.bz2
coreutils: optimize the '[' symlink
Link '[' directly to the coreutils binary instead of going through 'test'. Suggested-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/coreutils/coreutils.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 2fb4a32c79..7e7251ff73 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -112,7 +112,7 @@ endif
define COREUTILS_CLEANUP
# link for archaic shells
- ln -fs test $(TARGET_DIR)/usr/bin/[
+ ln -fs coreutils $(TARGET_DIR)/usr/bin/[
# gnu thinks chroot is in bin, debian thinks it's in sbin
rm -f $(TARGET_DIR)/usr/bin/chroot
ln -sf ../bin/coreutils $(TARGET_DIR)/usr/sbin/chroot