From 81ca9d7223d75a74d997b1aa98a9f97d90fb53bb Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Fri, 8 Jun 2012 11:36:35 +0000 Subject: [PATCH] PR#5636: issue with pthread_atfork in glibc git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12586 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- Changes | 3 ++- otherlibs/systhreads/Makefile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 5bbefecca..021fbf331 100644 --- a/Changes +++ b/Changes @@ -55,7 +55,7 @@ Standard library: . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) - . Added "randomize" function and "R" parameter to OCAMLRUNPARAMS + . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. @@ -177,6 +177,7 @@ Feature wishes: - PR#5555: Add function Hashtbl.reset to resize the bucket table to its initial size. - PR#5599: Add warn() tag in ocamlbuild to control -w compiler switch +- PR#5636: in system threads library, issue with linking of pthread_atfork - ocamldebug: ability to inspect values that contain code pointers - ocamldebug: new 'environment' directive to set environment variables for debugee diff --git a/otherlibs/systhreads/Makefile b/otherlibs/systhreads/Makefile index 5977ce253..6184dcfe6 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) \