This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran 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
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iNTEkxzBBcGfIrS89UzxMCD7WlOTV+YAQikKKf2hs7anqLOz1JLz+Ef5UJrPByb7fMcGjOoS4PbffqIoZPqKi4AGV133jiLRviZIu9Gpkbt/ObXULrfPekCuNQlPbZsa9bVCsRI8q8XqsyDK2lqSn3fw6gZ60Q6BTVGS6uXP1/A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jcHmBy/ZC7T2y8cKez09dT/CiogmmX6KxAq0mDWO3aa4EdS2yYxyXGEWISYhi5XjO78I5eomCSo3dgdP5CVbCKudMZRi2Eq8S5qpE8aTu98zgk6Fd8xIJntrRPkOcyJrrLXTAtjw431twR5g2ouARAJXliA6cXN2UIwM1RTC69M=
- 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/