交叉编译工具链中库和头文件的搜索路径

echo 'main(){}'|arm-himix100-linux-gcc -E -v -

xxxx@xxxx:tool$ echo 'main(){}'|arm-himix100-linux-gcc -E -v -
Using built-in specs.
COLLECT_GCC=arm-himix100-linux-gcc
Target: arm-linux-uclibceabi
Configured with: /home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/src/gcc-6.3.0/configure --host=i386-redhat-linux --build=i386-redhat-linux --target=arm-linux-uclibceabi --prefix=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/install --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --disable-libatomic --disable-nls --enable-clocale=gnu --enable-extra-hisi-multilibs --with-sysroot=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/install/target --with-build-sysroot=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/install/target --with-gmp=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/obj/host-libs/usr --with-mpfr=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/obj/host-libs/usr --with-mpc=/home/sying/SDK_CPU_UNIFIED/build/script/arm-himix100-linux/arm_himix100_build_dir/obj/host-libs/usr --disable-libgomp --disable-libquadmath --disable-fixed-point --disable-libsanitizer --disable-libitm --enable-poison-system-directories --with-pkgversion='HC&C V100R002C00B032_20190114'
Thread model: posix
gcc version 6.3.0 (HC&C V100R002C00B032_20190114)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtls-dialect=gnu'
 /media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../libexec/gcc/arm-linux-uclibceabi/6.3.0/cc1 -E -quiet -v -iprefix /media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/arm-linux-uclibceabi/6.3.0/ -isysroot /media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../target - -mtls-dialect=gnu
ignoring duplicate directory "/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/../../lib/gcc/arm-linux-uclibceabi/6.3.0/include"
ignoring nonexistent directory "/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../target/usr/local/include"
ignoring duplicate directory "/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/../../lib/gcc/arm-linux-uclibceabi/6.3.0/include-fixed"
ignoring duplicate directory "/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/../../lib/gcc/arm-linux-uclibceabi/6.3.0/../../../../arm-linux-uclibceabi/include"
#include "..." search starts here:
#include <...> search starts here:

 头文件搜索路径:

/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/arm-linux-uclibceabi/6.3.0/include
 /media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/arm-linux-uclibceabi/6.3.0/include-fixed
 /media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/arm-linux-uclibceabi/6.3.0/../../../../arm-linux-uclibceabi/include
 /media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../target/usr/include

End of search list.
# 1 ""
# 1 ""
# 1 ""
# 1 ""
main(){}
COMPILER_PATH=/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../libexec/gcc/arm-linux-uclibceabi/6.3.0/:/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../libexec/gcc/:/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/arm-linux-uclibceabi/6.3.0/../../../../arm-linux-uclibceabi/bin/

 

库的搜索路径:
LIBRARY_PATH=/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/arm-linux-uclibceabi/6.3.0/:/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/:/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../lib/gcc/arm-linux-uclibceabi/6.3.0/../../../../arm-linux-uclibceabi/lib/:/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../target/lib/:/media/app_disk/sdk/hisi/Hi3516EV200R001C00SPC020/Hi3516EV200R001C01SPC002/arm-himix100-linux/arm-himix100-linux/host_bin/../target/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-mtls-dialect=gnu'

 

你可能感兴趣的:(linux,交叉编译搜索路径)