This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch libjava]: PR 48512 Avoid crtmt.o in startfile-spec for w64 based mingw toolchains
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Thu, 2 Feb 2012 19:47:23 +0100
- Subject: [patch libjava]: PR 48512 Avoid crtmt.o in startfile-spec for w64 based mingw toolchains
Hello,
ChangeLog
2012-02-02 Kai Tietz <ktietz@redhat.com>
PR libjava/48512
* configure.ac (THREADSTARTFILESPEC): Don't add crtmet.o file for
w64 windows targets.
* configure: Regenerated.
Tested for i686-w64-mingw32, and i686-pc-mingw32. Ok for apply?
Regards,
Kai
Index: gcc/libjava/configure.ac
===================================================================
--- gcc.orig/libjava/configure.ac
+++ gcc/libjava/configure.ac
@@ -1150,8 +1150,13 @@ case "$THREADS" in
# FIXME: In Java we are able to detect thread death at the end of
# Thread.run() so we should be able to clean up the exception handling
# contexts ourselves.
- THREADSTARTFILESPEC='crtmt%O%s'
- ;;
+ case "$host" in
+ *-w64-mingw*)
+ ;;
+ *)
+ THREADSTARTFILESPEC='crtmt%O%s'
+ ;;
+ esac
none)
THREADH=no-threads.h