This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
cygwin patch for boehm-gc/configure.in
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Subject: cygwin patch for boehm-gc/configure.in
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Wed, 18 Apr 2001 23:13:12 -0000
- Cc: "'java-patches at gcc dot gnu dot org'" <java-patches at gcc dot gnu dot org>, "'robert dot collins at itdomain dot com dot au'" <robert dot collins at itdomain dot com dot au>
Rob Collins made some progress with libjava on cygwin, see
http://gcc.gnu.org/ml/java/2001-04/msg00261.html One problem is that posix
threads on cygwin doesn't/can't link with -lpthreads. Here is a patch.
2000-04-19 David Billinghurst <David.Billinghurst>
* configure.in: POSIX threads on cygwin does not link with
-lpthreads
--- boehm-gc/configure.in.bak Thu Apr 19 01:15:54 2001
+++ boehm-gc/configure.in Thu Apr 19 01:25:53 2001
@@ -44,6 +44,9 @@
*-*-win*)
THREADS=win32
;;
+ *-*-cygwin*)
+ THREADS=posix
+ ;;
*-*-irix[[1-5]].*)
# No built-in threads library on IRIX 5.* and older.
THREADS=none
@@ -73,6 +76,7 @@
;;
posix | pthreads)
THREADS=posix
+ THREADLIBS=-lpthread
case "$host" in
*-*-linux*)
AC_DEFINE(LINUX_THREADS)
@@ -85,8 +89,10 @@
*-*-irix*)
AC_DEFINE(IRIX_THREADS)
;;
+ *-*-cygwin*)
+ THREADLIBS=
+ ;;
esac
- THREADLIBS=-lpthread
;;
decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
AC_MSG_ERROR(thread package $THREADS not yet supported)