summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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