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