openbsd-ports/lang/gcc/4.2/patches/patch-boehm-gc_threadlibs_c
kurt 1094d158a8 - enable dwarf2 exceptions (w/major bump for libestdc++)
- add gcj support for i386, amd64 and sparc64
- add MODGCC4_LANGS=java support to gcc4.port.mk
okay robert@
2009-06-04 18:24:20 +00:00

14 lines
503 B
Plaintext

$OpenBSD: patch-boehm-gc_threadlibs_c,v 1.1 2009/06/04 18:24:20 kurt Exp $
--- boehm-gc/threadlibs.c.orig Thu Mar 5 17:58:11 2009
+++ boehm-gc/threadlibs.c Thu Mar 5 17:58:54 2009
@@ -15,6 +15,9 @@ int main()
|| defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)
printf("-lpthread\n");
# endif
+# if defined(GC_OPENBSD_THREADS)
+ printf("-pthread\n");
+# endif
# if defined(GC_FREEBSD_THREADS)
# if (__FREEBSD_version >= 500000)
printf("-lpthread\n");