]> granicus.if.org Git - gc/commitdiff
2009-09-18 Ivan Maidanski <ivmai@mail.ru> (really Ludovic CourtXs)
authorivmai <ivmai>
Fri, 18 Sep 2009 20:16:16 +0000 (20:16 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:47 +0000 (21:06 +0400)
* configure.ac: Don't use -lpthread -ldl for Cygwin.

ChangeLog
configure.ac

index 042739baaf8de04cde8c3c6b69e04ecab1b1cb75..e886f33f16eee3d3b51e5d6eb03dee42099f6e5b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
 
+2009-09-18  Ivan Maidanski <ivmai@mail.ru> (really Ludovic CourtXs)
+
+       * configure.ac: Don't use -lpthread -ldl for Cygwin.
+
 2009-09-18  Ivan Maidanski <ivmai@mail.ru>
 
        * NT_THREADS_MAKEFILE: Make it back equal to gc.mak.
index 8bb800ffc1faf4d5e5931d62e144c43d3a706c5c..9f2e87cddeeeb4b078d82595558dc1975322dd07 100644 (file)
@@ -22,7 +22,7 @@ AC_INIT(gc,7.2alpha3,Hans.Boehm@hp.com)
 AC_CONFIG_SRCDIR(gcj_mlc.c)
 AC_CANONICAL_TARGET 
 AC_PREREQ(2.53)
-AC_REVISION($Revision: 1.44 $)
+AC_REVISION($Revision: 1.45 $)
 GC_SET_VERSION
 AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects nostdinc])
 AM_MAINTAINER_MODE
@@ -156,6 +156,9 @@ case "$THREADS" in
      *-*-cygwin*)
        AC_DEFINE(GC_WIN32_THREADS)
        AC_DEFINE(THREAD_LOCAL_ALLOC)
+       # Cygwin doesn't have a real libpthread, so Libtool can't link
+       # against it.
+       THREADDLLIBS=""
        win32_threads=true
        ;;
      *-*-darwin*)
@@ -293,9 +296,10 @@ if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
 fi
 
 # We never want libdl on darwin. It is a fake libdl that just ends up making
-# dyld calls anyway
+# dyld calls anyway.  The same applies to Cygwin.
 case "$host" in
   *-*-darwin*) ;;
+  *-*-cygwin*) ;;
   *)
     AC_CHECK_LIB(dl, dlopen, THREADDLLIBS="$THREADDLLIBS -ldl")
     ;;