Add a path to search for libraries
Syntax
-sysroot < sysroot path >
Parameters
sysroot path
The directory path of the sysroot for the toolchain used.
Description
The
-sysroot compiler option passes this directory location to the linker to indicate where the linker should look for default object modules and libraries.
This passes on some responsibility of finding needed resources to the toolchain. Typically only needed when cross compiling where resources are expected to be in a single directory structure and expected to be found at known locations relative to the
sysroot.
To explicitly locate libraries use
#libpath or
Compiler Option: -p.
Version
See also