On Fri, Feb 20, 2009 at 04:27:49PM -0800, Krzysztof KosiĆski wrote:
The link time did increase a few seconds (I ahven't done any quantative tests), but the benefit of not having to care about the link order is much more important. Now files can be placed in the directories they belong to, instead of the directories they had o be in in order not to break the linking.
...
One idea we could try to reduce the link time is to create a large static library from all the .o files.
I don't think that that would work, as it's much the same as creating a large binary from all the .o files. More precisely, it will still help the case of building multiple binaries (such as the default targets of inkscape and inkview), but I expect that compiling just inkscape after a single .cpp file change will be slower with this approach than with the existing library arrangement.
If the existing library assignment is a working one, then another idea (or at least starting point) would be to try moving files but keep the existing library assignment: i.e. keep existing foo_libfoo_a_SOURCES lines but just adjust leading directories of individual .cpp files as appropriate.
pjrm.