From 6a042438af64f3dd7d9db7eac5f75bf5aced0803 Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Fri, 19 Jan 2024 11:37:02 -0800 Subject: [PATCH] Switch to local dlopen symbols --- llm/dyn_ext_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm/dyn_ext_server.c b/llm/dyn_ext_server.c index e9aa3481..47dc4e99 100644 --- a/llm/dyn_ext_server.c +++ b/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();