在交叉编译诸如 gcc binutils 和 glibc 之类的东西时,如何使用 --with-cpu 和 --with-arch

How do I use the --with-cpu and --with-arch when cross compiling stuff like gcc binutils and glibc

我需要针对 armv7-a 我不知道如何让它针对 armv7 进行编译。当使用 make install 安装二进制文件时,它使用 armv5te 我想做

./configure --host=arm-eabi --target=arm-eabi --with-arch --with-cpu

我改为使用 ./configure CFLAGS='-mcpu=cortex-a7 -mfpu=neon-vfpv4' 并且不再为 armv5te 编译二进制文件。谢谢大家