On Fri, Apr 29, 2005 at 01:30:13PM -0400, Ian Lance Taylor wrote: > I don't know of a way to tell libtool to not do duplicate compiles. > You can use -prefer-pic, but at least from looking at the script it > will still compile twice, albeit with -fPIC both times. > > Incidentally, at least on my system I don't think this will make a > dramatic difference. The incredibly slow parts of building libjava > all seem to have to do with building the .a and .so files, both of > which tend to cause my system to start swapping.
It seems that this is a binutils issue. Particularly in the case of .a files, it is puzzling why creating them is so resource-intensive.