summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-10-03 18:31:51 +0100
committerVincent Sanders <vince@kyllikki.org>2019-10-03 18:31:51 +0100
commit1bec35860a7140712eed1c26e57285803e61b557 (patch)
tree2664d27dff59de8587372eda5eb38d6d6d282141
parent7137cd7d057c3d7bf3193cb050497092eef9dad8 (diff)
downloadbuildsystem-1bec35860a7140712eed1c26e57285803e61b557.tar.gz
buildsystem-1bec35860a7140712eed1c26e57285803e61b557.tar.bz2
Fix extracting the toolchain prefix for non netsurf toolchains
-rw-r--r--makefiles/Makefile.tools2
1 files changed, 1 insertions, 1 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index c60d6fc..c0e96d5 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -139,7 +139,7 @@ else
else
CC__ := $(realpath $(toolpath_))
toolpath_ := $(dir $(CC__))
- toolprefix_ := $(subst :,/,$(dir $(subst -,/,$(subst /,:,$(CC__)))))
+ toolprefix_ := $(subst :,/,$(subst /,-,$(patsubst %/,%,$(dir $(subst -,/,$(subst /,:,$(CC__)))))))
ifeq ($(origin AR),default)
AR__ := $(toolprefix_)-ar
endif