summaryrefslogtreecommitdiffstats
path: root/byterun/unix.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2006-09-29 08:18:22 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2006-09-29 08:18:22 +0000
commit86fcc212e70cfcc94fda2e244d97350b182dac1b (patch)
treeb1f413710a0f4f71699148b83b7d854897976906 /byterun/unix.c
parent52f7fb6aec9ddc0ad7316542c859ac1811d5a576 (diff)
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
Diffstat (limited to 'byterun/unix.c')
-rw-r--r--byterun/unix.c6
1 files changed, 2 insertions, 4 deletions
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)