diff options
author | 2024-06-25 22:51:25 +0000 | |
---|---|---|
committer | 2024-06-25 22:51:25 +0000 | |
commit | e28882f6e1010c0d9f19ad41dac6fb4a13518053 (patch) | |
tree | b293f2d49847f5e47cb75783235e662acc44c861 | |
parent | 3a47ac77d70a8f6cd384d66ecabf7d0e6b421a15 (diff) | |
parent | 6781d33a5f1f65031907dba71cbaf404a18459df (diff) |
Merge "libbinder: export fewer symbols for bionic builds" into main
-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 { |