Patchwork [libjava] : PR 48512 Avoid crtmt.o in startfile-spec for w64 based mingw toolchains

login
register
mail settings
Submitter Kai Tietz
Date Feb. 2, 2012, 6:47 p.m.
Message ID <CAEwic4Y_QEJynD3YGckLMV7kDrcKXmTEDGfZKFO5enCcLtHeVw@mail.gmail.com>
Download mbox | patch
Permalink /patch/139191/
State New
Headers show

Comments

Kai Tietz - Feb. 2, 2012, 6:47 p.m.
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
Andrew Haley - Feb. 3, 2012, 8:58 a.m.
On 02/02/2012 06:47 PM, Kai Tietz wrote:
> 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?
> 

OK, thanks.

Andrew.

Patch

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