1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/lang/mono/files/patch-libgc_configure
Jeremy Messenger b07f2f74d7 Update to 1.0.5.
Submitted by:	Tom McLaughlin <tmclaugh@sdf.lonestar.org>
Project by:	BSD# - http://forge.novell.com/modules/xfmod/project/?bsd-sharp
Approved by:	maintainer timeout (still no contact for months)
2004-12-10 19:46:49 +00:00

26 lines
731 B
Plaintext

--- libgc/configure.orig Fri Dec 10 01:42:46 2004
+++ libgc/configure Fri Dec 10 01:43:11 2004
@@ -3962,6 +3962,22 @@
THREADLIBS="$PTHREAD_LIBS"
fi
;;
+ *-*-freebsd6*)
+ { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
+echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
+ cat >>confdefs.h <<\_ACEOF
+#define GC_FREEBSD_THREADS 1
+_ACEOF
+
+ if test "x$PTHREAD_CFLAGS" != "x"; then
+ INCLUDES="$INCLUDES $PTHREAD_CFLAGS"
+ fi
+ if test "x$PTHREAD_LIBS" = "x"; then
+ THREADLIBS=-lpthread
+ else
+ THREADLIBS="$PTHREAD_LIBS"
+ fi
+ ;;
*-*-solaris*)
cat >>confdefs.h <<\_ACEOF
#define GC_SOLARIS_THREADS 1