Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: runtime/bin/extensions_macos.cc

Issue 9694045: Change lookup path for Dart native extensions shared libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add comments, remove printf statement. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698