From: Baruch Siach Date: Wed, 11 Jul 2018 19:51:19 +0000 (+0300) Subject: coreutils: optimize the '[' symlink X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efa6946d4b43b8a07a7d0e4dcbfe1bd31503e1d9;p=buildroot.git coreutils: optimize the '[' symlink Link '[' directly to the coreutils binary instead of going through 'test'. Suggested-by: Arnout Vandecappelle Signed-off-by: Baruch Siach Signed-off-by: Thomas Petazzoni --- 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