From b959655822df6c5610372c9da54ea93f93ac87e9 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Fri, 12 May 2017 19:50:56 +1000 Subject: Fix unsafe substitutions in Makefile. Strange things can happen in the (unlikely) case that ROOTDIR=/rockbox Change-Id: I085f928fd859b307667e8fccf40b29a9c325f7ae --- tools/root.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/root.make') diff --git a/tools/root.make b/tools/root.make index 2deae8cc82..c9f4a2eb65 100644 --- a/tools/root.make +++ b/tools/root.make @@ -157,7 +157,7 @@ endif # CORE_GCSECTIONS OBJ := $(SRC:.c=.o) OBJ := $(OBJ:.S=.o) OBJ += $(BMP:.bmp=.o) -OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(OBJ)) +OBJ := $(call full_path_subst,$(ROOTDIR)/%,$(BUILDDIR)/%,$(OBJ)) build: $(TOOLS) $(BUILDDIR)/$(BINARY) $(CODECS) $(ROCKS) $(ARCHOSROM) $(RBINFO) -- cgit v1.2.3