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/foo.h
but you are cross-compiling and the appropriate foo.h
is in /my/other/place/usr/include/foo.h
, you would use /my/other/place
as your sysroot.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…