diff options
author | 2024-06-25 23:09:07 +0000 | |
---|---|---|
committer | 2024-06-25 23:09:07 +0000 | |
commit | 9bc501e050b79e7273fba79ec74230c514c9a07d (patch) | |
tree | 2a425bd312abae2df18f962dc19d8e22a6219c7c | |
parent | d2b130fbbbfcf737097f3197b908cbd108d9f03d (diff) | |
parent | e28882f6e1010c0d9f19ad41dac6fb4a13518053 (diff) |
Merge "libbinder: export fewer symbols for bionic builds" into main am: e28882f6e1
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3096103
Change-Id: If132531cda1181905d7b1e78f2f039968ba74ef7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | libs/binder/Android.bp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp index f31f8d3993..bd6a08e09b 100644 --- a/libs/binder/Android.bp +++ b/libs/binder/Android.bp @@ -268,6 +268,21 @@ cc_defaults { "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION", "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION", ], + + target: { + bionic: { + // Hide symbols by default and set the BUILDING_LIBBINDER macro so that + // the code knows to export them. + // + // Only enabled on bionic builds, where RTTI is disabled, because + // it is failing to export required typeinfo symbols. + // TODO: b/341341056 - Find a solution for non-bionic builds. + cflags: [ + "-fvisibility=hidden", + "-DBUILDING_LIBBINDER", + ], + }, + }, } cc_defaults { |