From: skv Date: Thu, 24 Nov 2016 12:54:21 +0000 (+0300) Subject: Fix pb with save/restore GEOM for Debian 6.0 X-Git-Tag: V8_2_0rc1~6^2 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=7235af072cdb8d889c609975200388bbbdc1d576;hp=-c Fix pb with save/restore GEOM for Debian 6.0 --- 7235af072cdb8d889c609975200388bbbdc1d576 diff --git a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx index f6574cb5a..33baabf0b 100644 --- a/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_HypothesesUtils.cxx @@ -69,7 +69,7 @@ #define UnLoadLib( handle ) FreeLibrary( handle ); #else #define LibHandle void* -#define LoadLib( name ) dlopen( name, RTLD_LAZY ) +#define LoadLib( name ) dlopen( name, RTLD_LAZY | RTLD_GLOBAL ) #define GetProc dlsym #define UnLoadLib( handle ) dlclose( handle ); #endif diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 6371c3806..845e0d9f0 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -63,7 +63,7 @@ #define UnLoadLib( handle ) FreeLibrary( handle ); #else #define LibHandle void* - #define LoadLib( name ) dlopen( name, RTLD_LAZY ) + #define LoadLib( name ) dlopen( name, RTLD_LAZY | RTLD_GLOBAL ) #define GetProc dlsym #define UnLoadLib( handle ) dlclose( handle ); #endif