[Bug fortran/46539] libquadmath: Add -static-libquadmath

arnaud02 at users dot sourceforge.net gcc-bugzilla@gcc.gnu.org
Thu Mar 22 16:46:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46539

Arnaud Desitter <arnaud02 at users dot sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arnaud02 at users dot
                   |                            |sourceforge.net

--- Comment #2 from Arnaud Desitter <arnaud02 at users dot sourceforge.net> 2012-03-22 16:40:41 UTC ---
I hit this problem. For the application I am dealing with, I need to link
statically the compiler provided libraries while linking dynamically the system
ones (pthread, mpi, etc.).

Linking with "gfortran -static-libgfortran -static-libgcc -Wl,-Bstatic -lstdc++
-Wl,-Bdynamic" solves the problem except for "libquadmath.so.0".

Linking with "-Wl,-Bstatic -lquadmath -Wl,-Bdynamic" does not help.

The only workaround I found is to configure gcc with "configure
--disable-libquadmath-support".

Could you please implement "-static-libquadmath" or make "-Wl,-Bstatic
-lquadmath -Wl,-Bdynamic" work?



More information about the Gcc-bugs mailing list