https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109460

--- Comment #21 from Huaqi <fanghuaqi at vip dot qq.com> ---
Hi, I tried to change it like this


$ git diff
diff --git a/gcc/config/i386/x-mingw32-utf8 b/gcc/config/i386/x-mingw32-utf8
index 2783dd259a6..e4a6c7f3d3a 100644
--- a/gcc/config/i386/x-mingw32-utf8
+++ b/gcc/config/i386/x-mingw32-utf8
@@ -34,7 +34,7 @@ utf8rc-mingw32.o : $(srcdir)/config/i386/utf8-mingw32.rc \
 # Create an object file that just exports the global symbol
 # HOST_EXTRA_OBJS_SYMBOL
 sym-mingw32.o : $(srcdir)/config/i386/sym-mingw32.cc
-       $(COMPILER) -c $< $@
+       $(COMPILER) -c $<

 # Combine the two object files into one which has both the
 # compiled utf8 resource and the HOST_EXTRA_OBJS_SYMBOL symbol.
@@ -45,7 +45,7 @@ sym-mingw32.o : $(srcdir)/config/i386/sym-mingw32.cc
 # get linked into the compiler proper eventually.
 # Therefore we need to request the symbol at compiler link time.
 utf8-mingw32.o : utf8rc-mingw32.o sym-mingw32.o
-       $(COMPILER) -r utf8rc-mingw32.o sym-mingw32.o -o $@
+       $(COMPILER) -r -nostdlib utf8rc-mingw32.o sym-mingw32.o -o $@


It seems to works for me now.

Reply via email to