The link options link with -lgmpxx, but do not include the required -lstdc++ and -lm options to make that link successful. This works accidentally if gmp is built as a shared library, which knows its dependencies at runtime, but if it is built static, the links fail with a sea of errors about undefined symbols.
Reprodce by: configure gmp library with --disable-shared and install /some/where configure gcc with --with-gmp=/some/where make bootstrap -- Summary: Link errors in bootstrap with static libgmpxx.a Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: marc dot mengel at gmail dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45010