I just noticed a problem with our use of GMP and MPFR.  If you
carefully install the appropriate versions of GMP and MPFR on one
machine in the normal way, and build gcc on that machine,
cc1/cc1plus/etc. wind up dynamically linked against libgmp.so and
libmpfr.so.  If you then copy the compiler to some other system, or
simply run it from another system via NFS, and you have not carefully
installed the appropriate versions of GMP and MPFR on that other
system, the compiler will fail to start, getting an error from the
dynamic linker.

We need a configure time option to link statically against GMP and
MPFR even if dynamic versions of the libraries are available.

I would argue that static linking should be the default, since that is
the least surprising option.  People who understand the issues can
enable dynamic linking.  But I'm willing to be overruled on this
point.

Ian

Reply via email to