smaller libs #778

artemp opened this Issue Oct 11, 2011 · 3 comments


None yet

2 participants

artemp commented Oct 11, 2011

We should be more aggressive, or at least add the option to Scons, to allow for more aggressive size reduction of libraries using link stripping and symbol hiding flags like -Wl,-S,-x,-mark_dead_strippable_dylib,-dead_strip and compiler flags like -fvisibility-inlines-hidden -fno-common -fvisibility-hidden. On OSX this will require more usage of -undefined dynamic_lookup to avoid having to resolve all symbols at link time.


-flto -fvisibility-inlines-hidden -fno-common -fvisibility-hidden helps a lot but are not general purpose so not going to add them by default.

@springmeyer springmeyer closed this Sep 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment