gcc环境配置:
#!/bin/bash
export SYSROOT=/../../sysroot-glibc-linaro-2.25-2019.02-arm-linux-gnueabihf
export TOOLCHAIN_HOME=/../../gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf
#export CC="arm-linux-androideabi-gcc --sysroot=$SYSROOT"
export CC="arm-linux-gnueabihf-gcc --sysroot=$SYSROOT"
export CXX="arm-linux-gnueabihf-g++ --sysroot=$SYSROOT"
export PATH=$TOOLCHAIN_HOME/bin:$PATH
1