fix: build on osx.

This commit is contained in:
dmitry 2020-06-18 10:26:08 +03:00
commit 77b001a845

View file

@ -58,6 +58,8 @@ public:
#if defined (CR_WINDOWS)
handle_ = LoadLibraryA (file.chars ());
#elif defined (CR_OSX)
handle_ = dlopen (file.chars (), RTLD_NOW | RTLD_LOCAL);
#else
handle_ = dlopen (file.chars (), RTLD_NOW | RTLD_DEEPBIND | RTLD_LOCAL);
#endif