This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, driver] PR41594 recognize -static-libstdc++ as a valid option.
- From: IainS <developer at sandoe-acoustics dot co dot uk>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 5 Oct 2009 20:45:36 +0100
- Subject: [Patch, driver] PR41594 recognize -static-libstdc++ as a valid option.
The driver currently rejects -static-libstdc++ although it is
processed by g++spec.c
Iain
2009-10-05 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
PR driver/41594
*gcc/gcc.c(process_command): Add -static-libstdc++ to list of
recognized options.
Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c (revision 152456)
+++ gcc/gcc.c (working copy)
@@ -4540,12 +4540,14 @@
switches[n_switches].validated = 0;
switches[n_switches].ordering = 0;
/* These are always valid, since gcc.c itself understands the
- first four and gfortranspec.c understands -static-
libgfortran. */
+ first four, gfortranspec.c understands -static-libgfortran
+ and g++spec.c understands -static-libstdc++ */
if (!strcmp (p, "save-temps")
|| !strcmp (p, "static-libgcc")
|| !strcmp (p, "shared-libgcc")
|| !strcmp (p, "pipe")
- || !strcmp (p, "static-libgfortran"))
+ || !strcmp (p, "static-libgfortran")
+ || !strcmp (p, "static-libstdc++"))
switches[n_switches].validated = 1;
else
{