# HG changeset patch # User Jan Nieuwenhuizen # Date 1296569678 -3600 # Node ID 967f2299c4371ff992e0fe3f4975cc1fcd85373b # Parent 73d419fb8438743d34ecdf402f3bcd12c2c1917b mingw::libgc: bump to 7.2.alpha4. diff -r 73d419fb8438 -r 967f2299c437 gub/specs/libgc.py --- 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 diff -r 73d419fb8438 -r 967f2299c437 patches/libgc-7.2-mingw-pthreads.patch --- /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) diff -r 73d419fb8438 -r 967f2299c437 patches/libgc-7.2-mingw-threads.patch --- /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)