Gary Oberbrunner wrote:
> Anyway, gotta get some real work done, hope that helps you get started.
Yes, it did, thank you very much!
Eventually, I found a very simple work-around that however is pretty
specific to my case. I just use
env.Append(LINKCOM=" -Wl,--allow-multiple-definition -Wl,--whole-archive
-lcfsLib -Wl,--no-whole-archive")
now, with the --allow-multiple-definition being required because I keep
cfsLib listed in LIBS as usual (for SCons's dependeny info), so that the
linkers sees it twice, and generates "multiple definition" errors
without it.
Not a very nice solution, but it works well! :-)
scons 中使用whole-archive
最新推荐文章于 2023-11-06 07:00:11 发布