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

Commit 69d31f9b authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar
Browse files

[binder_rpc_fuzzer] Depend on shared libutils for the device

Bug: http://b/197965342

binder_rpc_fuzzer depends on libbinder, which already depends on
libutils.so.  When linking binder_rpc_fuzzer with libutils.a, the linker
tries to fetch objects from libutils.a to define undefined symbols in
libbinder.so.  This causes a linker failure with upstream LLD.
Switching to shared libutils.so instead doesn't increase the dependency
closure for binder_rpc_fuzzer.

Test: build with aosp/1809741 which has lld with the above behavior.
Change-Id: I7a3076989eb54669c6a2a07734ef1745033a057e
parent d082b4db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,18 +22,19 @@ cc_fuzz {
        "libbase",
        "libcutils",
        "liblog",
        "libutils",
    ],

    target: {
        android: {
            shared_libs: [
                "libbinder",
                "libutils",
            ],
        },
        host: {
            static_libs: [
                "libbinder",
                "libutils",
            ],
        },
    },