mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 21:43:30 +08:00
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>
This commit is contained in:
parent
c5dec11d71
commit
efa6946d4b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user