From 1f4b517f2d57d3411d8c46fa5f9574cd40b05842 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Tue, 20 Oct 2020 10:10:37 +0000 Subject: [PATCH] specified RTLD_LOCAL when calling dlopen() --- moo/lib/std.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moo/lib/std.c b/moo/lib/std.c index 2fe9662..3a5235c 100644 --- a/moo/lib/std.c +++ b/moo/lib/std.c @@ -1416,8 +1416,8 @@ static void assert_fail (moo_t* moo, const moo_bch_t* expr, const moo_bch_t* fil #elif defined(USE_DLFCN) # define sys_dl_error() dlerror() -# define sys_dl_open(x) dlopen(x,RTLD_NOW) -# define sys_dl_openext(x) dlopen(x,RTLD_NOW) +# define sys_dl_open(x) dlopen(x,RTLD_NOW | RTLD_LOCAL) +# define sys_dl_openext(x) dlopen(x,RTLD_NOW | RTLD_LOCAL) # define sys_dl_close(x) dlclose(x) # define sys_dl_getsym(x,n) dlsym(x,n)