package/lld: create $(HOST_DIR)/$(GNU_TARGET_NAME)/bin before create symlinks

$(HOST_DIR)/$(GNU_TARGET_NAME)/bin directory may not exist before creating
lld symlinks.

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: Joseph Kogut <joseph.kogut@gmail.com>
Tested-By: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Romain Naour 2019-10-24 22:22:09 +02:00 committed by Peter Korsgaard
parent 257efc7405
commit 3c58e3f7c4

View File

@ -14,6 +14,7 @@ HOST_LLD_DEPENDENCIES = host-llvm
# GCC looks for tools in a different path from LLD's default installation path # GCC looks for tools in a different path from LLD's default installation path
define HOST_LLD_CREATE_SYMLINKS define HOST_LLD_CREATE_SYMLINKS
mkdir -p $(HOST_DIR)/$(GNU_TARGET_NAME)/bin
ln -sf $(HOST_DIR)/bin/lld $(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld ln -sf $(HOST_DIR)/bin/lld $(HOST_DIR)/$(GNU_TARGET_NAME)/bin/lld
ln -sf $(HOST_DIR)/bin/lld $(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lld ln -sf $(HOST_DIR)/bin/lld $(HOST_DIR)/$(GNU_TARGET_NAME)/bin/ld.lld
endef endef