Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76fc3d37 authored by Colin Cross's avatar Colin Cross
Browse files

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.

Bug: 149591340
Test: atest sdkextensions_e2e_tests
Change-Id: I2c9f439b98d277e6b53edd2e309f48aade089c45
Merged-In: I2c9f439b98d277e6b53edd2e309f48aade089c45
(cherry picked from commit 20dbbe37)
parent cf256243
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",
    ],
}