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

暗黑聖飢魔 kugwa2000 at gmail.com
Sat Aug 29 13:20:54 EDT 2020


The result of python-config is appended to LINKFLAGS. I assume it is SCons
that passes LINKFLAGS to the compilers?

Details here:
https://gem5.googlesource.com/public/gem5/+/refs/tags/v20.0.0.3/SConstruct#702

Mats Wichmann <mats at wichmann.us> 於 2020年8月30日 週日 上午1:06寫道:

> On 8/29/20 11:00 AM, 暗黑聖飢魔 wrote:
> > Thank you guys for clarifying that the path is not specified by SCons
> > itself.
> >
> > I just double-checked and found where that "-L/*/usr/lib*/" comes from
> > in gem5/SConstruct. The command "python-config --ldflags" is executed to
> > obtain
> > the ldflags needed by python and appended to LINKFLAGS. Prepending our
> > library path to LINKFLAGS solves our problem.
> >
> > Hsuan
>
> ah, good.  So your SConstruct somewhere passes the result of
> python-config to MergeFlags then?
> _______________________________________________
> 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/20200830/3b5380ba/attachment.html>


More information about the Scons-users mailing list