Commit 5f1c83e1 by Iain Sandoe

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
parent 719938ae
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> 2010-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* array.c (extract_element): Restore function from trunk. * array.c (extract_element): Restore function from trunk.
......
...@@ -186,6 +186,8 @@ lookup_option (Option *xopt, int *xskip, const char **xarg, const char *text) ...@@ -186,6 +186,8 @@ lookup_option (Option *xopt, int *xskip, const char **xarg, const char *text)
opt = OPTION_syntax_only; opt = OPTION_syntax_only;
else if (!strcmp (text, "-static-libgfortran")) else if (!strcmp (text, "-static-libgfortran"))
opt = OPTION_static_libgfortran; opt = OPTION_static_libgfortran;
else if (!strcmp (text, "-static"))
opt = OPTION_static;
else if (!strcmp (text, "-fversion")) /* Really --version!! */ else if (!strcmp (text, "-fversion")) /* Really --version!! */
opt = OPTION_version; opt = OPTION_version;
else if (!strcmp (text, "-Xlinker") || !strcmp (text, "-specs")) else if (!strcmp (text, "-Xlinker") || !strcmp (text, "-specs"))
...@@ -351,8 +353,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv, ...@@ -351,8 +353,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
#ifdef HAVE_LD_STATIC_DYNAMIC #ifdef HAVE_LD_STATIC_DYNAMIC
static_linking = 1; static_linking = 1;
#endif #endif
/* Fall through, count OPTION_static as an item included in break;
the rewritten command line. */
case OPTION_l: case OPTION_l:
++n_infiles; ++n_infiles;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment