| Index: runtime/bin/extensions_macos.cc
|
| diff --git a/runtime/bin/extensions_macos.cc b/runtime/bin/extensions_macos.cc
|
| index 92d33602555a8e7bd962083059ad6d9d5c556f2f..71a95f6240d93c7496bfb76dbf2da763f77a2036 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_path,
|
| + const char* extension_name) {
|
| + const char* strings[5] = { 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;
|
| }
|
|
|
|
|