summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/Android.bp10
-rw-r--r--runtime/Android.bp13
-rw-r--r--sigchainlib/Android.bp5
3 files changed, 18 insertions, 10 deletions
diff --git a/build/Android.bp b/build/Android.bp
index ad27d4252d..e54e2d3af8 100644
--- a/build/Android.bp
+++ b/build/Android.bp
@@ -173,11 +173,6 @@ art_module_art_global_defaults {
// "-marm",
// "-mapcs",
],
- header_libs: [
- // We optimize Thread::Current() with a direct TLS access. This requires access to a
- // platform specific Bionic header.
- "bionic_libc_platform_headers",
- ],
},
linux: {
cflags: [
@@ -187,11 +182,6 @@ art_module_art_global_defaults {
],
},
linux_bionic: {
- header_libs: [
- // We optimize Thread::Current() with a direct TLS access. This requires access to a
- // platform specific Bionic header.
- "bionic_libc_platform_headers",
- ],
strip: {
// Do not strip art libs when building for linux-bionic.
// Otherwise we can't get any symbols out of crashes.
diff --git a/runtime/Android.bp b/runtime/Android.bp
index be060c9403..7d793a6437 100644
--- a/runtime/Android.bp
+++ b/runtime/Android.bp
@@ -78,6 +78,19 @@ cc_library_headers {
header_libs: ["art_libartbase_headers"],
export_header_lib_headers: ["art_libartbase_headers"],
+ // We optimize Thread::Current() with a direct TLS access. This requires
+ // access to a platform specific Bionic header.
+ target: {
+ android: {
+ header_libs: ["bionic_libc_platform_headers"],
+ export_header_lib_headers: ["bionic_libc_platform_headers"],
+ },
+ linux_bionic: {
+ header_libs: ["bionic_libc_platform_headers"],
+ export_header_lib_headers: ["bionic_libc_platform_headers"],
+ },
+ },
+
apex_available: [
"com.android.art",
"com.android.art.debug",
diff --git a/sigchainlib/Android.bp b/sigchainlib/Android.bp
index f8c8379907..ee874dc0b7 100644
--- a/sigchainlib/Android.bp
+++ b/sigchainlib/Android.bp
@@ -49,8 +49,13 @@ cc_library {
},
android: {
+ header_libs: ["bionic_libc_platform_headers"],
static_libs: ["libasync_safe"],
},
+
+ linux_bionic: {
+ header_libs: ["bionic_libc_platform_headers"],
+ },
},
export_include_dirs: ["."],