WIN-29: mingw requires magic '-mthreads' flag to deal with exceptions and threads properly
Adam Megacz
patches@lists.megacz.com
Tue Feb 26 10:51:00 GMT 2002
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)
More information about the Java-patches
mailing list