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