我的机器交叉编译工具链大同小异,参考一下格式就O了。
export PATH=/opt/CodeSourcery/Sourcery_G++_Lite/bin:$PATH
export LIBRARY_PATH=/opt/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/lib
export C_INCLUDE_PATH=/opt/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/include
export CPLUS_INCLUDE_PATH=/opt/dvsdk/linux-devkit/arm-none-linux-gnueabi/usr/include
CC=arm-none-linux-gnueabi-gcc CFLAGS=" -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" ./configure --host=arm-none-linux-gnueabi --build=arm-linux
make