[Scons-users] Configure() when cross-compiling

tossel at gmail.com tossel at gmail.com
Wed Feb 26 09:58:59 EST 2020


Greetings,

sorry, that's probably a basic question, but I couldn't find the
answer in the docs. The user manual describes a way to define a
configuration context (Configure(env)) that would find libraries and
headers about the same way as autoconf or cmake do.

When cross-compiling for a Linux target it is necessary to set a
sysroot, so that the libraries are searched in the target root, not
host root. In cmake it's done with CMAKE_SYSROOT variable, in
autotools it's PKG_CONFIG_SYSROOT_DIR. Is there something similar in
SCons?

Thanks,
Anton Gerasimov


More information about the Scons-users mailing list