Skip to content

How to remove unused libraries? #719

Answered by bretambrose
jvasanthan asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming static linkage, you're only going to pick up what the linker can't strip based on call-site analysis, regardless of how many extra libraries are linked against. That stripping isn't perfect though (the codebase has plenty of vtable-esque constructions and unified configuration structures that will degrade how much can be left out, unfortunately).

A few things to try if you're not already doing so:

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jmklix
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