diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2010-04-13 11:37:34 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2010-04-13 11:37:34 +0000 |
commit | 5f1c83e1193bd6424f862095cbf5aedebf2e5e55 (patch) | |
tree | 4b6aa76b8fc8ee589e8c9f4483bb406fde9d9e96 /gcc | |
parent | 719938ae43b46f9f098c15f620cd388f6aadf55b (diff) | |
download | gcc-5f1c83e1193bd6424f862095cbf5aedebf2e5e55.zip gcc-5f1c83e1193bd6424f862095cbf5aedebf2e5e55.tar.gz gcc-5f1c83e1193bd6424f862095cbf5aedebf2e5e55.tar.bz2 |
re PR other/31400 (enable static linking of support libraries through -static-libXY)
gcc/fortran:
2010-04-13 Iain Sandoe <iains@gcc.gnu.org>
PR bootstrap/31400
* gfortranspec.c (lookup_option): Check for -static and return
OPTION_static.
(lang_specific_driver): Break when OPTION_static is discovered.
From-SVN: r158262
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/fortran/gfortranspec.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 4ef8eb9..e90da6f 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,10 @@ +2010-04-13 Iain Sandoe <iains@gcc.gnu.org> + + PR bootstrap/31400 + * gfortranspec.c (lookup_option): Check for -static and return + OPTION_static. + (lang_specific_driver): Break when OPTION_static is discovered. + 2010-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org> * array.c (extract_element): Restore function from trunk. diff --git a/gcc/fortran/gfortranspec.c b/gcc/fortran/gfortranspec.c index b7eccc3..413da7b 100644 --- a/gcc/fortran/gfortranspec.c +++ b/gcc/fortran/gfortranspec.c @@ -186,6 +186,8 @@ lookup_option (Option *xopt, int *xskip, const char **xarg, const char *text) opt = OPTION_syntax_only; else if (!strcmp (text, "-static-libgfortran")) opt = OPTION_static_libgfortran; + else if (!strcmp (text, "-static")) + opt = OPTION_static; else if (!strcmp (text, "-fversion")) /* Really --version!! */ opt = OPTION_version; else if (!strcmp (text, "-Xlinker") || !strcmp (text, "-specs")) @@ -351,8 +353,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv, #ifdef HAVE_LD_STATIC_DYNAMIC static_linking = 1; #endif - /* Fall through, count OPTION_static as an item included in - the rewritten command line. */ + break; case OPTION_l: ++n_infiles; |