diff options
-rw-r--r-- | vm/Android.mk | 2 | ||||
-rw-r--r-- | vm/Init.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/vm/Android.mk b/vm/Android.mk index 774dde708..eb36c0f98 100644 --- a/vm/Android.mk +++ b/vm/Android.mk @@ -109,7 +109,7 @@ ifeq ($(WITH_HOST_DALVIK),true) WITH_JIT := true include $(LOCAL_PATH)/Dvm.mk - LOCAL_SHARED_LIBRARIES += libcrypto-host libssl-host libicuuc-host libicui18n-host + LOCAL_SHARED_LIBRARIES += libnativehelper libcrypto-host libssl-host libicuuc-host libicui18n-host LOCAL_LDLIBS := -lpthread -ldl ifeq ($(HOST_OS),linux) diff --git a/vm/Init.cpp b/vm/Init.cpp index 11d884ead..90d1d3a19 100644 --- a/vm/Init.cpp +++ b/vm/Init.cpp @@ -33,6 +33,7 @@ #include "test/Test.h" #include "mterp/Mterp.h" #include "Hash.h" +#include "JniConstants.h" #if defined(WITH_JIT) #include "compiler/codegen/Optimizer.h" @@ -1618,6 +1619,9 @@ static bool registerSystemNatives(JNIEnv* pEnv) // Must set this before allowing JNI-based method registration. self->status = THREAD_NATIVE; + // First set up JniConstants, which is used by libcore. + JniConstants::init(pEnv); + // Most JNI libraries can just use System.loadLibrary, but you can't // if you're the library that implements System.loadLibrary! loadJniLibrary("javacore"); |