mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
BDW-GC: Tentative fix for Cygwin.
svn path=/nixpkgs/trunk/; revision=17249
This commit is contained in:
parent
15c8ec03a0
commit
26dc84f99a
24
pkgs/development/libraries/boehm-gc/cygwin-pthread-dl.patch
Normal file
24
pkgs/development/libraries/boehm-gc/cygwin-pthread-dl.patch
Normal 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; }
|
||||
|
|
@ -9,6 +9,10 @@ stdenv.mkDerivation {
|
|||
sha256 = "0c5zrsdw0rsli06lahcqwwz0prgah340fhfg7ggfgvz3iw1gdkp3";
|
||||
};
|
||||
|
||||
patches =
|
||||
stdenv.lib.optional (stdenv.system == "i686-cygwin")
|
||||
./cygwin-pthread-dl.patch;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue