summaryrefslogtreecommitdiff
path: root/lang/mono/patches/patch-ab
blob: 46e99be34d5055152056abcce0d05345ab81bfce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.11 2005/07/31 15:26:58 recht Exp $

--- configure.orig	2005-07-27 02:08:41.000000000 +0200
+++ configure
@@ -2224,6 +2224,18 @@ _ACEOF
 		;;
 	*-*-*netbsd*)
 		platform_win32=no
+		CPPFLAGS="$CPPFLAGS -D_REENTRANT -DGC_NETBSD_THREADS -D_GNU_SOURCE"
+		libmono_cflags="-D_REENTRANT"
+		LDFLAGS="$LDFLAGS -pthread"
+		libmono_ldflags="-pthread"
+		need_link_unlink=yes
+		libdl="-ldl /libexec/ld.elf_so"
+		libgc_threads=pthreads
+		with_tls=__thread
+		with_sigaltstack=yes
+		;;
+	*-*-*netbsd*)
+		platform_win32=no
 		CPPFLAGS="$CPPFLAGS -D_REENTRANT"
 		libmono_cflags="-D_REENTRANT"
 		LDFLAGS="$LDFLAGS -pthread"