------- Comment #33 from dje at gcc dot gnu dot org 2008-09-16 20:00 ------- I have not tried MPFR as a shared library.
One thing to be careful about with shared libraries on AIX is libpath. libtool configured for gmp and mpfr decides to hardcode the path and finds all of the GCC build directory paths. I manually edit the configured libtool to cleanup libpath. libgmp.a and libmpfr.a only need /usr/lib:/lib because they do not depend on shared libgcc.a. libgmpxx.a depends on the directories where libstdc++.a and libgcc_s.a are installed. cc1, cc1plus, etc. generally end up with sane libpaths, but libstdc++ (again built by libtool) includes a lot of junk directories. These latter dependencies would not affect the ICEs when building OpenFOAM, but you might want to be aware for the application itself. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37057