From 77b001a845dc91dd5b59de137c69a63e714f3241 Mon Sep 17 00:00:00 2001 From: dmitry Date: Thu, 18 Jun 2020 10:26:08 +0300 Subject: [PATCH] fix: build on osx. --- ext/crlib/cr-library.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/crlib/cr-library.h b/ext/crlib/cr-library.h index c00d039..85fb18c 100644 --- a/ext/crlib/cr-library.h +++ b/ext/crlib/cr-library.h @@ -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