From 3be0ec611f848b57bc44c0fac4e3fd39cdca4371 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Mon, 11 Apr 2022 20:04:20 +0000 Subject: [PATCH] Build with upstream lld: Fix incorrect static dependencies Bug: http://b/197965342 Remove unnecessary `static_libs` dependencies or move them to `shared_libs` to build with upstream LLD. See b/197965342#comment1 (internal) for rationale. Some info is available externally at https://github.com/llvm/llvm-project/issues/42899. Per go/android-lld-static-lib-fix, OWNERS are added for visibility. No action is needed if the change looks good. This change will be merged after two business days with Global Approvers. Test: Build modules with aosp/2036867 in addition to presubmit Change-Id: Id3ec5d188d7d0ae364e52b98fb9cf7221274665a --- vibrator/aidl/default/Android.bp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vibrator/aidl/default/Android.bp b/vibrator/aidl/default/Android.bp index acdbdcdd3c..c4140bebc8 100644 --- a/vibrator/aidl/default/Android.bp +++ b/vibrator/aidl/default/Android.bp @@ -63,7 +63,6 @@ cc_fuzz { "libbinder_random_parcel", "libcutils", "liblog", - "libutils", "libvibratorexampleimpl", ], target: { @@ -71,12 +70,14 @@ cc_fuzz { shared_libs: [ "libbinder_ndk", "libbinder", + "libutils", ], }, host: { static_libs: [ "libbinder_ndk", "libbinder", + "libutils", ], }, darwin: {