[Buildroot] [git commit] package/lld: create $(HOST_DIR)/$(GNU_TARGET_NAME)/bin before create symlinks

Peter Korsgaard peter at korsgaard.com
Fri Oct 25 08:28:31 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=3c58e3f7c43dd5609a5f16a2ff264b06a403b575
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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

Signed-off-by: Romain Naour <romain.naour at smile.fr>
Cc: Joseph Kogut <joseph.kogut at gmail.com>
Tested-By: Joseph Kogut <joseph.kogut at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/lld/lld.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/lld/lld.mk b/package/lld/lld.mk
index a6933e2961..bda5a56ab5 100644
--- a/package/lld/lld.mk
+++ b/package/lld/lld.mk
@@ -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


More information about the buildroot mailing list