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

Rob Boehne robb at datalogics.com
Wed Feb 26 13:04:59 EST 2020


Anton,

PKG_CONFIG_SYSROOT_DIR isn't part of Autotools, and it may help with an SCons build as well if the SCons build's Configure uses pkg-config.

Rob

On 2/26/20, 8:59 AM, "Scons-users on behalf of tossel at gmail.com" <scons-users-bounces at scons.org on behalf of 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://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpairlist4.pair.net%2Fmailman%2Flistinfo%2Fscons-users&data=02%7C01%7Crobb%40datalogics.com%7Caf4c1985ee214be241ee08d7bacc728b%7Cfc3d8cdfd6994f23ae232659c3da4749%7C0%7C1%7C637183259583481216&sdata=3F%2FfSqq8Un1UYuLbhpjm%2BIAdHdmy3fN1mTKNJNdP1N4%3D&reserved=0
    



More information about the Scons-users mailing list