[patch] Add -static-libgfortran to gcc.c and Fortran driver
François-Xavier Coudert
fxcoudert@gmail.com
Mon May 7 11:02:00 GMT 2007
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.
This change in the option name requires a one-line addition to gcc.c,
in order to validate this option that has a name that doesn't start
with -f. I don't know who exactly can approve this change, I think it
qualifies as "driver".
Bootstrapped, regtested and manually tested on i686-linux. OK for
mainline? (for both the Fortran and gcc.c parts)
:ADDPATCH driver:
2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* gcc.c (process_command): Recognize the new -static-libgfortran
option.
2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* lang.opt (static-libgfortran): New option.
* gfortranspec.c (ADD_ARG_LIBGFORTRAN): New macro.
(Option): Add OPTION_static and OPTION_static_libgfortran.
(lookup_option): Handle the new -static-libgfortran option.
(lang_specific_driver): Check whether -static is passed.
Handle the new -static-libgfortran option.
* options.c (gfc_handle_option): If -static-libgfortran is
passed and isn't supported on this configuration, error out.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: static_libgfortran.diff
Type: text/x-patch
Size: 4835 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070507/69b0c8cb/attachment.bin>
More information about the Fortran
mailing list