[Buildroot] [PATCH v2 2/2] coreutils: optimize the '[' symlink
Baruch Siach
baruch at tkos.co.il
Wed Jul 11 19:51:19 UTC 2018
Link '[' directly to the coreutils binary instead of going through
'test'.
Suggested-by: Arnout Vandecappelle <arnout at mind.be>
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
v2: New patch in this series
---
package/coreutils/coreutils.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 2fb4a32c794f..7e7251ff7396 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
--
2.18.0
More information about the buildroot
mailing list