2013/11/14 Johan Engelen <jbc.engelen@...2592...>:
Not too long ago, we had to switch to linking everything in one go, because we rely on initialization of global namespace objects. See rev. 12559. I don't think this global object init thing is very elegant, and would love to get rid of it. The cmdline limit is a very strong argument of reinstating linking separate static libs.
To have the cake and eat it too, we should create shared libraries, not static libraries. This will run the global init code but also allow us to modularize. However, building shared libraries with Autotools is very annoying. I'd rather we did this after migrating all platforms to CMake / Waf / something other than Autotools which has native support for shared libs.
Regards, Krzysztof