summaryrefslogtreecommitdiff
path: root/build_atomic_ops.sh.cygwin
diff options
context:
space:
mode:
authorhboehm <hboehm>2008-10-25 02:13:19 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:43 +0200
commit72bb12b8a9a9193c6eb792dce3f7347b0be08297 (patch)
treed934077b0d69947b9ee7bb76b32661d39bb12db4 /build_atomic_ops.sh.cygwin
parent4e7edff29276d81c29483ea68012333dca2f787b (diff)
2008-10-24 Hans Boehm <Hans.Boehm@hp.com>
(Partially based loosely on patch from Ivan Maidanski) * win32_threads.c (GC_may_be_in_stack): New. (GC_Thread_Rep): Add last_stack_min. (GC_push_stack_for): Use last_stack_min. (GC_get_next_stack): Add limit argument, use_last_stack_min. (GC_suspend): make stack_base assignment conditional. * dyn_load.c (win32 GC_cod_add_roots): Pass limit to GC_get_next_stack. * configure_atomic_ops.sh: Remove. * build_atomic_ops.sh, build_atomic_ops.sh.cygwin, doc/README.win32, Makefile.direct: Partially support build directories whose path name contains blanks. * Makefile.am: Support new files (build_atomic_ops.sh, build_atomic_ops.sh.cygwin) * Makefile.in: Regenerate.
Diffstat (limited to 'build_atomic_ops.sh.cygwin')
-rwxr-xr-xbuild_atomic_ops.sh.cygwin14
1 files changed, 14 insertions, 0 deletions
diff --git a/build_atomic_ops.sh.cygwin b/build_atomic_ops.sh.cygwin
new file mode 100755
index 0000000..0c24e33
--- /dev/null
+++ b/build_atomic_ops.sh.cygwin
@@ -0,0 +1,14 @@
+#!/bin/sh
+# We install through the temporary directory in case pwd contains spaces,
+# which otherwise breaks the build machinery.
+# This is a gross hack and probably breaks incremental rebuilds
+mkdir libatomic_ops-install
+P=`pwd`
+Q=`mktemp -d`
+ln -s "$P" $Q/dir
+cd $Q/dir/libatomic_ops-*[0-9]
+./configure --prefix=$Q/dir/libatomic_ops-install
+$MAKE CC=$CC install
+cd /
+rm $Q/dir
+rmdir $Q