aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 9fab77b..b525e8f 100644
--- a/cmd.c
+++ b/cmd.c
@@ -263,7 +263,7 @@ static void cmd_module __P1 (char *,arg) {
}
/* open lib */
- lib = dlopen( libname, RTLD_LAZY );
+ lib = dlopen( libname, RTLD_GLOBAL | RTLD_LAZY );
if( ! lib ) {
PRINTF( "#module error: %s\n", dlerror() );
return;