963a64f
From e14375eca4f1ddd9d3b28c9b45ce4aca05070a95 Mon Sep 17 00:00:00 2001
963a64f
From: "Richard W.M. Jones" <rjones@redhat.com>
963a64f
Date: Tue, 5 Jun 2012 22:49:17 +0100
963a64f
Subject: [PATCH 8/8] Link dllthreads.so with -lpthread so that pthread_atfork
963a64f
 is included statically.
963a64f
963a64f
See:
963a64f
https://lists.fedoraproject.org/pipermail/ppc/2012-June/001655.html
963a64f
---
963a64f
 otherlibs/systhreads/Makefile |    2 +-
963a64f
 1 file changed, 1 insertion(+), 1 deletion(-)
963a64f
963a64f
diff --git a/otherlibs/systhreads/Makefile b/otherlibs/systhreads/Makefile
963a64f
index 5ee2775..c75ab14 100644
963a64f
--- a/otherlibs/systhreads/Makefile
963a64f
+++ b/otherlibs/systhreads/Makefile
963a64f
@@ -30,7 +30,7 @@ all: libthreads.a threads.cma
963a64f
 allopt: libthreadsnat.a threads.cmxa
963a64f
 
963a64f
 libthreads.a: $(BYTECODE_C_OBJS)
963a64f
-	$(MKLIB) -o threads $(BYTECODE_C_OBJS)
963a64f
+	$(MKLIB) -o threads $(BYTECODE_C_OBJS) -lpthread
963a64f
 
963a64f
 st_stubs_b.o: st_stubs.c st_posix.h
963a64f
 	$(BYTECC) -O -I../../byterun $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) \
963a64f
-- 
963a64f
1.7.10.1
963a64f