From bf613b4ce4bbbe6f97023879b14f2f5a6dcfa5e8 Mon Sep 17 00:00:00 2001 From: dimitry Date: Tue, 14 May 2019 14:50:27 +0200 Subject: [PATCH] Link libselinux/utils/base statically CTS tests are not supposed to link against platform-private libraries. As it is this test put an implicit requirement on having libselinux.so in system image. Which is not intended. Link statically against listed libraries to avoid such unintended dependencies. Test: make Change-Id: I47a5b032000ee2c1ff764d6cc57683343851a07f --- logd/tests/Android.bp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logd/tests/Android.bp b/logd/tests/Android.bp index 83a194f7e..d39da8a27 100644 --- a/logd/tests/Android.bp +++ b/logd/tests/Android.bp @@ -35,12 +35,12 @@ cc_defaults { srcs: ["logd_test.cpp"], - shared_libs: [ + static_libs: [ "libbase", "libcutils", "libselinux", + "liblog", ], - static_libs: ["liblog"], } // Build tests for the logger. Run with: