From 1bec35860a7140712eed1c26e57285803e61b557 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 3 Oct 2019 18:31:51 +0100 Subject: Fix extracting the toolchain prefix for non netsurf toolchains --- makefiles/Makefile.tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3