This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
WIN-29: mingw requires magic '-mthreads' flag to deal with exceptions and threads properly
- From: Adam Megacz <patches at lists dot megacz dot com>
- To: java-patches at gcc dot gnu dot org
- Date: 25 Feb 2002 19:34:29 -0800
- Subject: WIN-29: mingw requires magic '-mthreads' flag to deal with exceptions and threads properly
- Organization: Myself
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)