sysroot,是交叉编译时,用来定位头文件和库文件的位置的。
A sysroot is a directory which is considered to be the root directory for the purpose of locating headers and libraries.
So for example if your build toolchain wants to find /usr/include/adb.h
but you are cross-compiling and the appropriate foo.h
is in /sam/picnic/place/usr/include/adb.h
, you would use /sam/picnic/place
as your sysroot.