This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Add -static-libgfortran to gcc.c and Fortran driver
- From: "Daniel Franke" <franke dot daniel at gmail dot com>
- To: "François-Xavier Coudert" <fxcoudert at gmail dot com>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 7 May 2007 13:14:16 +0200
- Subject: Re: [patch] Add -static-libgfortran to gcc.c and Fortran driver
- References: <19c433eb0705070402x43f37620o2d04f8d1bd18a8b5@mail.gmail.com>
2007/5/7, François-Xavier Coudert <fxcoudert@gmail.com>:
Attached patch adds a -static-libgfortran option that links the static
libgfortran library on systems where the linker supports
-Bdynamic/-Bstatic. This is an update of my previous patch
(http://gcc.gnu.org/ml/gcc/2007-04/msg00680.html). The name of the
option was changed from -fstatic-libgfortran to -static-libgfortran
for consistency with -static-libgcc.
Great news! Thanks :)
Although I can not approve the patch, two comments below:
2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* gcc.c (process_command): Recognize the new -static-libgfortran
option.
Please also add a reference to PR31400 to the ChangeLog.
+ /* Whether we should link a static libgfortran. */
+ int static_lib = 0;
+
+ /* Whether we need to link staticaly. */
+ int static_linking = 0;
s/staticaly/statically/