COMP: some low-level darwin-related patches

- a partial selection from https://github.com/mrklein/openfoam-os-x
  with adjustments. The primary purpose is to reduce header-level
  incompatibilities and to provide a common set of make rules to allow
  easier patching (or re-integration).
This commit is contained in:
Mark Olesen
2018-04-09 12:48:55 +02:00
parent d2b1b1cdc0
commit 297570de53
31 changed files with 218 additions and 19 deletions

View File

@ -44,7 +44,7 @@ SourceFiles
namespace Foam
{
// Forward declaration of classes
// Forward declarations
class dynamicCodeContext;
class ISstream;
class OSstream;
@ -92,11 +92,11 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
dynamicCode(const dynamicCode&);
//- No copy construct
dynamicCode(const dynamicCode&) = delete;
//- Disallow default bitwise assignment
void operator=(const dynamicCode&);
//- No copy assignment
void operator=(const dynamicCode&) = delete;
protected:
@ -221,7 +221,11 @@ public:
// Corresponds to codeRoot()/libSubDir()/lib\<codeName\>.so
fileName libPath() const
{
#ifdef darwin
return codeRoot_/libSubDir_/"lib" + codeName_ + ".dylib";
#else
return codeRoot_/libSubDir_/"lib" + codeName_ + ".so";
#endif
}
//- Path for specified code name relative to \$FOAM_CASE