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

Commit e28882f6 authored by Frederick Mayle's avatar Frederick Mayle Committed by Gerrit Code Review
Browse files

Merge "libbinder: export fewer symbols for bionic builds" into main

parents 3a47ac77 6781d33a
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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 {