[Scons-users] Force scons to use local libraries over system libraries

Mats Wichmann mats at wichmann.us
Sat Aug 29 13:31:05 EDT 2020


On 8/29/20 11:20 AM, 暗黑聖飢魔 wrote:
> The result of python-config is appended to LINKFLAGS. I assume it is
> SCons that passes LINKFLAGS to the compilers?

Yes. It's described here:

https://scons.org/doc/4.0.1/HTML/scons-man.html#cv-LINKFLAGS

The work that's being done in your SConstruct for this actually has
SCons methods to help out with:

https://scons.org/doc/4.0.1/HTML/scons-man.html#f-MergeFlags

(see the examples there - SCons knows how to talk to the system's
*-config scripts)

but if things are working for you now I wouldn't necessarily go messing
with that....




More information about the Scons-users mailing list