BDW-GC: Tentative fix for Cygwin.

svn path=/nixpkgs/trunk/; revision=17249
This commit is contained in:
Ludovic Courtès 2009-09-18 14:30:10 +00:00
parent 15c8ec03a0
commit 26dc84f99a
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,24 @@
Don't pass "-lpthread -ldl" on Cygwin. See
http://thread.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/3219
for details.
--- gc-7.1/configure 2008-05-04 02:52:50.000000000 +0200
+++ gc-7.1/configure 2009-09-18 16:23:30.000000000 +0200
@@ -4859,7 +4859,7 @@
cat >>confdefs.h <<\_ACEOF
#define THREAD_LOCAL_ALLOC 1
_ACEOF
-
+ THREADDLLIBS=""
win32_threads=true
;;
*-*-darwin*)
@@ -5934,6 +5934,7 @@
# dyld calls anyway
case "$host" in
*-*-darwin*) ;;
+ *-*-cygwin*) ;;
*)
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }

View File

@ -9,6 +9,10 @@ stdenv.mkDerivation {
sha256 = "0c5zrsdw0rsli06lahcqwwz0prgah340fhfg7ggfgvz3iw1gdkp3";
};
patches =
stdenv.lib.optional (stdenv.system == "i686-cygwin")
./cygwin-pthread-dl.patch;
doCheck = true;
meta = {