(GCC_LINK): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183983
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/Make-lang.in (GCC_LINKERFLAGS): New variable.
+ (GCC_LINK): Use it.
+
2012-02-01 Tristan Gingold <gingold@adacore.com>
* gcc-interface/trans.c (Loop_Statement_to_gnu): Use sizetype
endif
endif
-GCC_LINK=$(LINKER) $(ALL_LINKERFLAGS) -static-libgcc $(LDFLAGS)
+# Strip -Werror during linking for the LTO bootstrap
+GCC_LINKERFLAGS = $(filter-out -Werror, $(ALL_LINKERFLAGS))
+
+GCC_LINK=$(LINKER) $(GCC_LINKERFLAGS) -static-libgcc $(LDFLAGS)
# Lists of files for various purposes.