linux – What is a sysroot exactly and how do I create one ?

linux – What is a sysroot exactly and how do I create one ?

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.

linux – What is a sysroot exactly and how do I create one ?

Leave a Reply

Your email address will not be published.