Merge pull request #477 from J08nY/fix/makefile-echo Fix clang detection when cross-compiling.
diff --git a/makefile_include.mk b/makefile_include.mk
index be53ba7..0266da1 100644
--- a/makefile_include.mk
+++ b/makefile_include.mk
@@ -26,7 +26,7 @@ ifeq ($(PLATFORM),FreeBSD)
# XXX: FreeBSD needs extra escaping for some reason
CSTR := $$$(CSTR)
endif
-ifneq (,$(shell echo $(CSTR) | $(CC) -E - | grep CLANG))
+ifneq (,$(shell printf $(CSTR) | $(CC) -E - | grep CLANG))
CC := $(CROSS_COMPILE)clang
else
CC := $(CROSS_COMPILE)gcc