Skip to content

Commit 5778642

Browse files
committed
IECoreHoudini Plugin : Control RTLD_GLOBAL via an environment variable.
1 parent 3dab74f commit 5778642

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/IECoreHoudini/plugin/Plugin.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ extern "C"
8686
{
8787
SYS_VISIBILITY_EXPORT void HoudiniDSOInit( UT_DSOInfo &dsoinfo )
8888
{
89-
dsoinfo.loadGlobal = true;
89+
const char *forceGlobals = std::getenv( "IECORE_FORCE_GLOBAL_SYMBOLS" );
90+
if( forceGlobals && !strcmp( forceGlobals, "1" ) )
91+
{
92+
dsoinfo.loadGlobal = true;
93+
}
9094
}
9195
}
9296

0 commit comments

Comments
 (0)