Fix static dependency on libprotobuf-cpp-lite-ndk
Soong was adding shared dependency on libprotobuf-cpp-lite-ndk in addition to the manual static dependency. This resulted in ODR issues when libc++.so was loaded through libprotobuf-cpp-lite.so. Set proto.static: true to tell Soong to use the static dependency. Test: atest sdkextensions_e2e_tests Change-Id: I2c9f439b98d277e6b53edd2e309f48aade089c45
This commit is contained in:
@@ -20,13 +20,13 @@ cc_defaults {
|
||||
],
|
||||
proto: {
|
||||
type: "lite",
|
||||
static: true,
|
||||
},
|
||||
sdk_version: "current",
|
||||
stl: "c++_static",
|
||||
shared_libs: [ "liblog" ],
|
||||
static_libs: [
|
||||
"libbase_ndk",
|
||||
"libprotobuf-cpp-lite-ndk",
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user