re PR other/31400 (enable static linking of support libraries through -static-libXY)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 27 Jun 2007 22:58:37 +0000 (22:58 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 27 Jun 2007 22:58:37 +0000 (22:58 +0000)
commit86db887aa6ae4c19c134d909899d3fc92781f737
treea925f05a83569d4de9cc60c8b6dcf3ff583b607b
parent99920b6fbb5bb6006955dd497d40b666fb502216
re PR other/31400 (enable static linking of support libraries through -static-libXY)

PR other/31400

* gcc.c (process_command): Recognize the new -static-libgfortran
option.

* 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.

From-SVN: r126068
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/gfortranspec.c
gcc/fortran/lang.opt
gcc/fortran/options.c
gcc/gcc.c