Skip to content
Discussion options

You must be logged in to vote

走正常 static link 不行么? 平常走 so 库,发布时候走 .a 静态库全部 link 到一个 binary,还可以开下 lto 啥的整体优化,每个 .a 里面原本就是一堆 obj 的归档。

为啥非要基于 obj 自己组织?如果非要这么搞,on_load 或者 before_link 里面取所有 target:deps() 然后将里面的 dep:objectfiles() 全部插入到 target:objectfiles()

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by SaeruHikari
Comment options

You must be logged in to vote
7 replies
@waruqi
Comment options

@BenzzzX
Comment options

@BenzzzX
Comment options

@SaeruHikari
Comment options

@waruqi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants