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

Bill Deegan bill at baddogconsulting.com
Wed Feb 26 11:50:13 EST 2020


Anton,

Assuming your cross compilers don't automatically know the location of
their libraries, most likely you'd need to set LIBPATH and CPPPATH to point
to the library and include directories.

-Bill

On Wed, Feb 26, 2020 at 9:59 AM <tossel at gmail.com> wrote:

> 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
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200226/9a96bc90/attachment.html>


More information about the Scons-users mailing list