We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1eac62 commit 3dab74fCopy full SHA for 3dab74f
src/IECoreMaya/plugin/Loader.cpp
@@ -51,7 +51,15 @@ IECORE_EXPORT MStatus initializePlugin( MObject obj )
51
52
std::string implName = pluginPath + "/impl/" + pluginName + ".so";
53
54
- g_libraryHandle = dlopen( implName.c_str(), RTLD_NOW | RTLD_GLOBAL );
+ const char *forceGlobals = std::getenv( "IECORE_FORCE_GLOBAL_SYMBOLS" );
55
+ if( forceGlobals && !strcmp( forceGlobals, "1" ) )
56
+ {
57
+ g_libraryHandle = dlopen( implName.c_str(), RTLD_NOW | RTLD_GLOBAL );
58
+ }
59
+ else
60
61
+ g_libraryHandle = dlopen( implName.c_str(), RTLD_NOW );
62
63
64
if (! g_libraryHandle )
65
{
0 commit comments