From 9e12433760cb26126a71d17d608cc84f9971d31c Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Thu, 17 Jan 2019 11:37:22 -0800 Subject: [PATCH] Statically link liblog to logd/logcat and their tests logd/logcat use more symbols than the rest of the platform, so let's statically link them for now while we understand the API that the platform overall uses. Test: build Change-Id: I21ae1bd3ff9b310f099612fbe790f769712661df --- logcat/Android.bp | 2 +- logcat/tests/Android.bp | 6 ++---- logd/Android.bp | 6 ++++-- logd/tests/Android.bp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/logcat/Android.bp b/logcat/Android.bp index b0563a64c..0543aba73 100644 --- a/logcat/Android.bp +++ b/logcat/Android.bp @@ -25,9 +25,9 @@ cc_defaults { shared_libs: [ "libbase", "libcutils", - "liblog", "libpcrecpp", ], + static_libs: ["liblog"], logtags: ["event.logtags"], } diff --git a/logcat/tests/Android.bp b/logcat/tests/Android.bp index e1f4d6f75..ab84150d5 100644 --- a/logcat/tests/Android.bp +++ b/logcat/tests/Android.bp @@ -48,10 +48,8 @@ cc_benchmark { cc_test { name: "logcat-unit-tests", defaults: ["logcat-tests-defaults"], - shared_libs: [ - "liblog", - "libbase", - ], + shared_libs: ["libbase"], + static_libs: ["liblog"], srcs: [ "logcat_test.cpp", "logcatd_test.cpp", diff --git a/logd/Android.bp b/logd/Android.bp index 5c79976a3..3abfc2171 100644 --- a/logd/Android.bp +++ b/logd/Android.bp @@ -63,11 +63,13 @@ cc_binary { srcs: ["main.cpp"], - static_libs: ["liblogd"], + static_libs: [ + "liblog", + "liblogd", + ], shared_libs: [ "libsysutils", - "liblog", "libcutils", "libbase", "libpackagelistparser", diff --git a/logd/tests/Android.bp b/logd/tests/Android.bp index f15beb223..83a194f7e 100644 --- a/logd/tests/Android.bp +++ b/logd/tests/Android.bp @@ -38,9 +38,9 @@ cc_defaults { shared_libs: [ "libbase", "libcutils", - "liblog", "libselinux", ], + static_libs: ["liblog"], } // Build tests for the logger. Run with: