Re: Force scons to use local libraries over system libraries

暗黑聖飢魔 <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CALUrpDD0_7qARxwdPDiuMon2+0fcmirLzAVkCJFKY02cKgJoYg@mail.gmail.com>
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 <[email protected]> 於 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
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.