summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho do Couto <renato@netgate.com>2025-01-02 17:54:15 +0000
committerMatthew Smith <mgsmith@netgate.com>2025-01-06 16:05:13 +0000
commit7cb30d37226014281d4df2a048bac57c7cb25e70 (patch)
tree1a98a754ccc932086b0962401987340d388f54f9
parentdc9aa161348051499ccf0af0f9aee37b96aa8e56 (diff)
build: Fix PATH shell export
When $(wildcard /usr/lib*/ccache) returns more than one directory, they are separated by space and it ends up setting only first one to PATH variable while the rest of the string is just throwed to bash and it ends up breaking the build. This change replaces space by colon to keep desired PATH string syntax. Type: fix Change-Id: I94ba3465a46fa3c4fbb50c9668f0afd97e8c4f91 Signed-off-by: Renato Botelho do Couto <renato@netgate.com>
-rw-r--r--build-root/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-root/Makefile b/build-root/Makefile
index df4434d7629..b62a671d58f 100644
--- a/build-root/Makefile
+++ b/build-root/Makefile
@@ -317,7 +317,7 @@ endif
BUILD_ENV = \
export CCACHE_DIR=$(CCACHE_DIR) ; \
- export PATH=$(wildcard /usr/lib*/ccache):$(TOOL_INSTALL_DIR)/bin:$${PATH} ; \
+ export PATH=$$(echo $(wildcard /usr/lib*/ccache) | tr ' ' ':'):$(TOOL_INSTALL_DIR)/bin:$${PATH} ; \
$(if $(call configure_var_fn,PATH), export PATH=$${PATH}:$(call configure_var_fn,PATH);,) \
export PATH="`echo $${PATH} | sed -e s/[.]://`" ; \
$(if $(not_native),export CONFIG_SITE=$(MU_BUILD_ROOT_DIR)/config.site ;,) \