changeset 6460:967f2299c437

mingw::libgc: bump to 7.2.alpha4.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Tue, 01 Feb 2011 15:14:38 +0100
parents 73d419fb8438
children 44f26aba5bd6
files gub/specs/libgc.py patches/libgc-7.2-mingw-pthreads.patch patches/libgc-7.2-mingw-threads.patch
diffstat 3 files changed, 33 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/libgc.py	Mon Jan 31 16:27:03 2011 +0100
+++ b/gub/specs/libgc.py	Tue Feb 01 15:14:38 2011 +0100
@@ -22,10 +22,13 @@
         'pthreads-w32',
         ]
     patches = [
-        'libgc-6.8-mingw-pthreads.patch',
+        #'libgc-6.8-mingw-pthreads.patch',
+        #'libgc-7.2-mingw-pthreads.patch',
+        'libgc-7.2-mingw-threads.patch',
         ]
     force_autoupdate = True
-    source = 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc6.8.tar.gz&version=6.8'
+    #source = 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc6.8.tar.gz&version=6.8'
+    source = 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.2alpha4.tar.gz&version=7.2.4'
 
 class Libgc (tools.AutoBuild, Libgc):
     pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/libgc-7.2-mingw-pthreads.patch	Tue Feb 01 15:14:38 2011 +0100
@@ -0,0 +1,17 @@
+--- libgc-7.2.4/configure.ac~	2011-01-31 23:19:46.556212301 +0100
++++ libgc-7.2.4/configure.ac	2011-01-31 23:22:07.347644925 +0100
+@@ -197,6 +197,14 @@ case "$THREADS" in
+ 	THREADDLLIBS=""
+ 	win32_threads=true
+ 	;;
++     *-*-mingw*)
++	AC_DEFINE(GC_THREADS)
++        if test "${enable_parallel_mark}" = yes; then
++	  AC_DEFINE(PARALLEL_MARK)
++	fi
++	AC_DEFINE(THREAD_LOCAL_ALLOC)
++	THREADDLLIBS="-lpthread"
++	;;
+      *-*-darwin*)
+ 	AC_DEFINE(GC_DARWIN_THREADS)
+ 	AC_DEFINE(THREAD_LOCAL_ALLOC)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/libgc-7.2-mingw-threads.patch	Tue Feb 01 15:14:38 2011 +0100
@@ -0,0 +1,11 @@
+--- libgc-7.2.4/configure.ac~	2009-12-01 21:34:24.000000000 +0100
++++ libgc-7.2.4/configure.ac	2011-01-31 23:18:59.763071888 +0100
+@@ -186,7 +186,7 @@ case "$THREADS" in
+      *-*-irix*)
+ 	AC_DEFINE(GC_IRIX_THREADS)
+ 	;;
+-     *-*-cygwin*)
++     *-*-cygwin*|*-*-mingw*)
+ 	AC_DEFINE(GC_THREADS)
+         if test "${enable_parallel_mark}" = yes; then
+ 	  AC_DEFINE(PARALLEL_MARK)