about summary refs log tree commit diff
path: root/dlfcn/dlopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn/dlopen.c')
-rw-r--r--dlfcn/dlopen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dlfcn/dlopen.c b/dlfcn/dlopen.c
index dae0b5880e..793891e896 100644
--- a/dlfcn/dlopen.c
+++ b/dlfcn/dlopen.c
@@ -36,7 +36,8 @@ dlopen_doit (void *a)
 {
   struct dlopen_args *args = (struct dlopen_args *) a;
 
-  args->new = _dl_open (args->file ?: "", args->mode, args->caller);
+  args->new = _dl_open (args->file ?: "", args->mode | __RTLD_DLOPEN,
+			args->caller);
 }