Skip to content

Commit 73d3136

Browse files
committed
IECoreHoudini Plugin : Control RTLD_GLOBAL via an environment variable.
1 parent d868646 commit 73d3136

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
@@ -72,7 +72,11 @@ extern "C"
7272
{
7373
SYS_VISIBILITY_EXPORT void HoudiniDSOInit( UT_DSOInfo &dsoinfo )
7474
{
75-
dsoinfo.loadGlobal = true;
75+
const char *forceGlobals = std::getenv( "IECORE_RTLD_GLOBAL" );
76+
if( !forceGlobals || !strcmp( forceGlobals, "1" ) )
77+
{
78+
dsoinfo.loadGlobal = true;
79+
}
7680
}
7781
}
7882

0 commit comments

Comments
 (0)