| Index: runtime/bin/extensions_macos.cc
|
| diff --git a/runtime/bin/extensions_macos.cc b/runtime/bin/extensions_macos.cc
|
| index 92d33602555a8e7bd962083059ad6d9d5c556f2f..9e33b2b88ea69b4073409e1c60f003b2f13d5d4c 100644
|
| --- a/runtime/bin/extensions_macos.cc
|
| +++ b/runtime/bin/extensions_macos.cc
|
| @@ -5,11 +5,13 @@
|
| #include "bin/extensions.h"
|
| #include <dlfcn.h>
|
|
|
| -void* Extensions::LoadExtensionLibrary(const char* library_name) {
|
| - const char* strings[4] = { "./lib", library_name, ".dylib", NULL };
|
| - char* library_path = Concatenate(strings);
|
| - void* lib_handle = dlopen(library_path, RTLD_LAZY);
|
| - free(library_path);
|
| +void* Extensions::LoadExtensionLibrary(const char* library_name,
|
| + const char* extension_name) {
|
| + const char* strings[4] = { library_path, "/lib",
|
| + extension_name, ".dylib", NULL };
|
| + char* library_file = Concatenate(strings);
|
| + void* lib_handle = dlopen(library_file, RTLD_LAZY);
|
| + free(library_file);
|
| return lib_handle;
|
| }
|
|
|
|
|