This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/46539] libquadmath: Add -static-libquadmath
- From: "arnaud02 at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Mar 2012 16:40:41 +0000
- Subject: [Bug fortran/46539] libquadmath: Add -static-libquadmath
- Auto-submitted: auto-generated
- References: <bug-46539-4@http.gcc.gnu.org/bugzilla/>
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?