From: skv Date: Wed, 23 Nov 2016 09:40:02 +0000 (+0300) Subject: Fix pb with save/restore GEOM for Debian 6.0 X-Git-Tag: V8_2_0rc1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4b1c5319b2602645121eec1dca525b71c4914c0e;p=modules%2Fgui.git Fix pb with save/restore GEOM for Debian 6.0 --- diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index 473afae69..a8603ec1f 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -335,7 +335,7 @@ CAM_Module* CAM_Application::loadModule( const QString& modName, const bool show getVersion = (GET_VERSION_FUNC)::GetProcAddress( modLib, GET_VERSION_NAME ); } #else - void* modLib = dlopen( libName.toLatin1(), RTLD_LAZY ); + void* modLib = dlopen( libName.toLatin1(), RTLD_LAZY | RTLD_GLOBAL ); if ( !modLib ) err = QString( "Can not load library %1. %2" ).arg( libName ).arg( dlerror() ); else