[Gc]: libatomic_ops: time to alpha release?

Petter Urkedal urkedal at nbi.dk
Thu Oct 15 15:35:25 PDT 2009


On 2009-10-15, Ivan Maidanski wrote:
> PS. What's about http://thread.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/3435 (it seems there are problems in the scripts for OpenBSD and Solaris/shared)?

# 1 (OpenBSD).  We're missing a case for the thread configuration.
Someone could try the attached patch, but I don't know if it's the right
way to do it.  I basically copied the FreeBSD case.

# 3 (Solaris).  The dynamic loader does not find a GCC support
library.  This is probably as issue with the installation and runtime
environment on the machine, rather than with GC.  It may be fixable with
a line in ld.so.conf, or by setting LD_LIBRARY_PATH, or with a
Solaris-equivalent.  Still I believe the location of libgcc_s should
have been hard-coded in the compiler.  Is the compiler moved, or is the
-R option causing trouble?
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 9f440e1..466f0f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,6 +144,11 @@ case "$THREADS" in
 	AC_DEFINE(GC_FREEBSD_THREADS)
 	INCLUDES="$INCLUDES -pthread"
       	;;
+     *-*-openbsd*)
+	AC_MSG_WARN([OpenBSD does not yet fully support threads with Boehm GC.])
+	AC_DEFINE([GC_FREEBSD_THREADS])
+	INCLUDES="$INCLUDES -pthread"
+	;;
      *-*-kfreebsd*-gnu)
 	AC_DEFINE(GC_FREEBSD_THREADS)
 	INCLUDES="$INCLUDES -pthread"


More information about the Gc mailing list