set RTLD_LOCAL for dlopen() when opening a module
This commit is contained in:
parent
78deb3a44d
commit
b17dfeea3c
@ -498,7 +498,7 @@ void* hawk_stdmodopen (hawk_t* hawk, const hawk_mod_spec_t* spec)
|
||||
#endif
|
||||
if (!modpath) return HAWK_NULL;
|
||||
|
||||
h = dlopen(modpath, RTLD_NOW);
|
||||
h = dlopen(modpath, RTLD_NOW | RTLD_LOCAL);
|
||||
if (!h) hawk_seterrfmt (hawk, HAWK_NULL, HAWK_ESYSERR, HAWK_T("%hs"), dlerror());
|
||||
|
||||
hawk_freemem (hawk, modpath);
|
||||
|
Loading…
Reference in New Issue
Block a user