diff --git a/linker/dlfcn.cpp b/linker/dlfcn.cpp
index 2486e021f18eabe34e15f1f8104ec39d2e89518e..57b2c23b2b2a86992c1eaf2e3925cd121a2cc548 100644 (file)
--- a/linker/dlfcn.cpp
+++ b/linker/dlfcn.cpp
/* This file hijacks the symbols stubbed out in libdl.so. */
-static pthread_mutex_t g_dl_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER;
+static pthread_mutex_t g_dl_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
static const char* __bionic_set_dlerror(char* new_value) {
char** dlerror_slot = &reinterpret_cast<char**>(__get_tls())[TLS_SLOT_DLERROR];