cygwin patch for boehm-gc/configure.in
Billinghurst, David (CRTS)
David.Billinghurst@riotinto.com
Wed Apr 18 16:23:00 GMT 2001
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)
More information about the Gcc-patches
mailing list