During bootstrap, GCC links all host programs with -lgmp -lmpfr. Only the compiler itself (cc1, cc1plus, jc1, etc) need to do this. The other programs (xgcc, gcj, cpp, gcov, jcf-dump, etc) don't need it. With static libs it doesn't matter, but for shared libs it hooks in the .so file at runtime for no reason every time these programs are used.
This is harmless and the overhead is probably minuscule. But IMHO it should be cleaned up. -- Summary: GCC unnecessarily links shared libs with xgcc, gcov, cpp, jcf-dump, etc. Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ghazi at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35107