From 86fcc212e70cfcc94fda2e244d97350b182dac1b Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Fri, 29 Sep 2006 08:18:22 +0000 Subject: Be more prudent with previous change: not sure RTLD_LAZY works everywhere git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7659 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- byterun/unix.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'byterun/unix.c') diff --git a/byterun/unix.c b/byterun/unix.c index def4f152c..60e5f3634 100644 --- a/byterun/unix.c +++ b/byterun/unix.c @@ -285,10 +285,8 @@ char * caml_dlerror(void) void * caml_dlopen(char * libname, int for_execution) { - return dlopen(libname, - for_execution - ? RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE - : RTLD_LAZY); + return dlopen(libname, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE); + /* Could use RTLD_LAZY if for_execution == 0, but needs testing */ } void caml_dlclose(void * handle) -- cgit v1.2.3-70-g09d2