修改 Makefile
CC = $(TOOLCHAIN_PREFIX)gcc$(TOOLCHAIN_SUFFIX) -DNO_ASM
CXX = $(TOOLCHAIN_PREFIX)g++$(TOOLCHAIN_SUFFIX) -DNO_ASM
特别适用于 ArchLinux ARM 选手,其他发行版需稍作修改
修改 Makefile
CC = $(TOOLCHAIN_PREFIX)gcc$(TOOLCHAIN_SUFFIX)
CXX = $(TOOLCHAIN_PREFIX)g++$(TOOLCHAIN_SUFFIX)
AR = $(TOOLCHAIN_PREFIX)gcc-ar
RANLIB = $(TOOLCHAIN_PREFIX)gcc-ranlib
CP = $(TOOLCHAIN_PREFIX)gcc-cp
编译
export TOOLCHAIN_PREFIX=/usr/bin/armv7l-unknown-linux-gnueabihf-
make
特别感谢 @404neko 提供的解决方案