This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

WIN-29: mingw requires magic '-mthreads' flag to deal with exceptions and threads properly



ok to commit?

  - a

2002-02-25  Adam Megacz  <adam@xwt.org>

        * configure.in: Added '-mthreads' option for mingw.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.in,v
retrieving revision 1.114
diff -u -r1.114 configure.in
--- configure.in        2002/02/12 05:52:30     1.114
+++ configure.in        2002/02/26 03:38:40
@@ -343,6 +343,8 @@
     esac
     ;;
  win32)
+    # mingw requires the magic -mthreads option
+    X_CFLAGS="$X_CFLAGS -mthreads"
     ;;
  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
     AC_MSG_ERROR(thread package $THREADS not yet supported)
@@ -351,6 +353,7 @@
     AC_MSG_ERROR($THREADS is an unknown thread package)
     ;;
 esac
+AC_SUBST(X_CFLAGS)
 
 THREADLIBS=
 THREADINCS=
@@ -408,6 +411,7 @@
  win32)
     THREADOBJS=win32-threads.lo
     THREADH=win32-threads.h
+    EXCEPTIONSPEC=-mthreads
     ;;
 
  none)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]