diff --git a/Makefile b/Makefile index 999a3a7b..ae795c46 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ else # CROSS_COMPILE was set CXX = $(CROSS_COMPILE)g++ CXXFLAGS += -static LDFLAGS += -static - check_arm := $(shell echo | $(CROSS_COMPILE)cpp -dM - | grep " __ARM_ARCH " | cut -c20-) + check_arm := $(shell echo | $(CROSS_COMPILE)c++ -dM - | grep " __ARM_ARCH " | cut -c20-) ifeq ($(check_arm),8) processor = aarch64 else ifeq ($(check_arm),7) # detect ARMv7-A only