I have about 50 different static libraries being linked into my c++ project and the linking takes on average 70s.
I\'ve found that moving around with the link order of
In the past, the order of objects in a static library was important. You can sort the objects accordingly with:
$ lorder *.o | tsort
Maybe you could do the same with your main objects and libraries, e.g. lorder main.o test.o libsome.a libthing.a | tsort. Look at man lorder
lorder main.o test.o libsome.a libthing.a | tsort