I upgraded a server to FreeBSD-10/gcc48, and my project, which uses ar to put subprojects into static libraries, now links outrageously slowly.
10.0-RELEASE-p4 FreeBSD 10.0-RELEASE-p4 #0: Tue Jun 3 13:14:57 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Playing with different ar flags:
“time ar -v -c -u -q ...” : 362.62 real 0.11 user 0.82 sys
“time ar v -c -r -u -s ...”: 407.94 real 0.13 user 0.80 sys
This must be ten times slower than before (FreeBSD-8, stock GCC compiler). What can I do to improve this? GNU Libtool just uses ar behind the scenes (so wouldn't help), right? Should I bypass static libs altogether? (But wouldn't building a .so take the same time?) Needless to say, this kills my development cycle time.