Explorar o código

Switch to local dlopen symbols

Daniel Hiltgen hai 1 ano
pai
achega
6a042438af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      llm/dyn_ext_server.c

+ 1 - 1
llm/dyn_ext_server.c

@@ -59,7 +59,7 @@ void dyn_init(const char *libPath, struct dynamic_llama_server *s,
   };
 
   printf("loading library %s\n", libPath);
-  s->handle = LOAD_LIBRARY(libPath, RTLD_GLOBAL|RTLD_NOW);
+  s->handle = LOAD_LIBRARY(libPath, RTLD_LOCAL|RTLD_NOW);
   if (!s->handle) {
     err->id = -1;
     char *msg = LOAD_ERR();