libcore: add dependency on libnativehelper_compat_libc++

Part of reducing the libnativehelper API surface. The symbols
jniLogException and jniRegisterNativeMethods are no longer part of the
libnativehelper API, but are present in the static
libnativehelper_compat_libc++.

Bug: 188067586
Test: m
Change-Id: I336baea7983a820d1b396344f23a69582139126c
diff --git a/NativeCode.bp b/NativeCode.bp
index 534c3ad..7bb7f51 100644
--- a/NativeCode.bp
+++ b/NativeCode.bp
@@ -45,6 +45,7 @@
         "liblog",
         "libnativehelper",
     ],
+    static_libs: ["libnativehelper_compat_libc++"],
 }
 
 cc_library_shared {
@@ -73,6 +74,7 @@
         "libz",
     ],
     static_libs: [
+        "libnativehelper_compat_libc++",
         "libziparchive",
     ],
 }
@@ -131,7 +133,10 @@
         "libnativehelper",
         "libz",
     ],
-    static_libs: ["libfdlibm"],
+    static_libs: [
+        "libfdlibm",
+        "libnativehelper_compat_libc++",
+    ],
 
     target: {
         linux_glibc: {
@@ -232,6 +237,8 @@
         "liblog",
         "libnativehelper",
     ],
+
+    static_libs: ["libnativehelper_compat_libc++"],
 }
 
 // Set of benchmarks for libjavacore functions.