From 3f9b22e5b4e763fbbce17b35207fa29134b28772 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 2 Oct 2019 08:56:28 -0400 Subject: [PATCH] Explicitly specify RTLD_LOCAL for plugin loading. --- src/plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.cpp b/src/plugin.cpp index 91c0d0fd..c0090db7 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -71,7 +71,7 @@ static InitCallback loadLibrary(Plugin* plugin) { throw UserException(string::f("Failed to load library %s: code %d", libraryFilename.c_str(), error)); } #else - void* handle = dlopen(libraryFilename.c_str(), RTLD_NOW); + void* handle = dlopen(libraryFilename.c_str(), RTLD_NOW | RTLD_LOCAL); if (!handle) { throw UserException(string::f("Failed to load library %s: %s", libraryFilename.c_str(), dlerror())); }