diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-06-27 22:58:37 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-06-27 22:58:37 +0000 |
commit | 86db887aa6ae4c19c134d909899d3fc92781f737 (patch) | |
tree | a925f05a83569d4de9cc60c8b6dcf3ff583b607b /gcc/fortran/options.c | |
parent | 99920b6fbb5bb6006955dd497d40b666fb502216 (diff) | |
download | gcc-86db887aa6ae4c19c134d909899d3fc92781f737.zip gcc-86db887aa6ae4c19c134d909899d3fc92781f737.tar.gz gcc-86db887aa6ae4c19c134d909899d3fc92781f737.tar.bz2 |
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
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r-- | gcc/fortran/options.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index fbcb94e..50f5e94 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -551,6 +551,13 @@ gfc_handle_option (size_t scode, const char *arg, int value) gfc_option.flag_second_underscore = value; break; + case OPT_static_libgfortran: +#ifndef HAVE_LD_STATIC_DYNAMIC + gfc_fatal_error ("-static-libgfortran is not supported in this " + "configuration"); +#endif + break; + case OPT_fimplicit_none: gfc_option.flag_implicit_none = value; break; |