This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New option: -fstatic-libgfortran


On Tue, Apr 24, 2007 at 10:55:56AM +0200, François-Xavier Coudert wrote:
> >Sorry about the (possibly off) question: would this apply also to
> >GMP/MPFR, if not, wouldn't it make sense?
> 
> GMP and MPFR are host libraries, so it is actually an independent
> issue. However, it might be worth having --with-static-gmp and
> --with-static-mpfr to request static linking of these libraries into
> the compiler. I think I suggested the idea (maybe even a patch, but I
> can't find it in the mailing-list archives) when gmp/mpfr was still
> only used by Fortran.
> 
> In the end, some people will think it's stretching the configury too
> much for a specific purpose, and some people will think it's just a
> good option to have. (I'm in the second group.) Let's wait and see
> what people think of the idea.

I just keep this local patch.


H.J.
----
--- gcc/Makefile.in.gmp	2006-05-19 06:23:09.000000000 -0700
+++ gcc/Makefile.in	2006-05-19 13:20:17.000000000 -0700
@@ -295,7 +295,7 @@ ZLIB = @zlibdir@ -lz
 ZLIBINC = @zlibinc@
 
 # How to find GMP
-GMPLIBS = @GMPLIBS@
+GMPLIBS = -Wl,-Bstatic @GMPLIBS@ -Wl,-Bdynamic
 GMPINC = @GMPINC@
 
 CPPLIB = ../libcpp/libcpp.a


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]