Skip to content
Snippets Groups Projects
Commit 6e6d4573 authored by Christoph Hasse's avatar Christoph Hasse :cartwheel_tone1:
Browse files

dlopen with RTLD_GLOBAL

parent 39f2b44b
No related branches found
No related tags found
1 merge request!2699FunctorFactory, replace CLING backend with native compiler
......@@ -150,7 +150,7 @@ struct FunctorFactory : public extends<Service, Functors::IFactory> {
// but specified to make it obvious). RTLD_LAZY is to only load what we
// need (the .so has a bunch of other symbols in it)
if ( m_lib_handle = LibHandle{dlopen( lib_filename.c_str(), RTLD_LOCAL | RTLD_LAZY ), lib_closer};
if ( m_lib_handle = LibHandle{dlopen( lib_filename.c_str(), RTLD_GLOBAL | RTLD_LAZY ), lib_closer};
m_lib_handle != nullptr ) {
info() << "Using functor library: " << lib_filename << ", which was found via LD_LIBRARY_PATH" << endmsg;
} else if ( m_lib_handle = LibHandle{dlopen( lib_full_path.c_str(), RTLD_LOCAL | RTLD_LAZY ), lib_closer};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment