0. 首先解释下build, host和target build:编译过程运行在build上 host:编译出来的东西运行在host上 target:运行在host上的编译器编译出来的东西运行于target. 例如,编译gcc时,build=x86,host=arm,target=mips,表示: a) 在x86上编译gcc源代码: b) a步骤得到的gcc在arm上运行(姑且把这个编译器叫做xxx-linux-gcc) c) 你写了个小东西main.c在arm上用xxx-linux-gcc编译