scons 中使用whole-archive

匿名 (未验证) 提交于 2019-12-03 00:22:01
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!   :-)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!