package/lld: create $(HOST_DIR)/$(GNU_TARGET_NAME)/bin before create symlinks
authorRomain Naour <romain.naour@smile.fr>
Thu, 24 Oct 2019 20:22:09 +0000 (22:22 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 25 Oct 2019 08:28:31 +0000 (10:28 +0200)
$(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>
package/lld/lld.mk

index a6933e2961d226f1bd61591cf63b639cc9abb13b..bda5a56ab59ae192c5f3cd6348a4feb00f90e187 100644 (file)
@@ -14,6 +14,7 @@ HOST_LLD_DEPENDENCIES = host-llvm
 
 # GCC looks for tools in a different path from LLD's default installation path
 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/ld.lld
 endef