Merge "symbols in stub library isn't affected by -fvisibility=hidden" am: 66278b6224

am: e3dfb51c8c

Change-Id: I65602662ddad44066071e6860f925fee11104bd2
This commit is contained in:
Jiyong Park
2019-11-21 18:44:06 -08:00
committed by android-build-merger

View File

@@ -269,6 +269,10 @@ func addStubLibraryCompilerFlags(flags Flags) Flags {
// (avoids the need to link an unwinder into a fake library).
"-fno-unwind-tables",
)
// All symbols in the stubs library should be visible.
if inList("-fvisibility=hidden", flags.Local.CFlags) {
flags.Local.CFlags = append(flags.Local.CFlags, "-fvisibility=default")
}
return flags
}