]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/runtime/CppContainer.cxx
Salome HOME
Patch for MacOS (from SALOME forum)
[modules/yacs.git] / src / runtime / CppContainer.cxx
index af5aec92ac6ecb97b2a6ace9ab8da26ea109aedd..d3e8b5015e58b21b5fbf217b9a793d5f1f51c9ab 100644 (file)
@@ -324,7 +324,11 @@ LocalLibrary  LocalContainer::loadComponentLibrary(const std::string & aCompName
     }
   
 #ifndef WIN32
+#ifdef __APPLE__
+  std::string impl_name = std::string ("lib") + aCompName + std::string("Local.dylib");
+#else
   std::string impl_name = std::string ("lib") + aCompName + std::string("Local.so");
+#endif
   if(sprefix != "")
     impl_name = sprefix + std::string("/") + impl_name;
 #else