Merge "Do not re-export _Unwind_XXX symbols."
This commit is contained in:
@@ -83,6 +83,7 @@ var (
|
|||||||
"-Wl,--warn-shared-textrel",
|
"-Wl,--warn-shared-textrel",
|
||||||
"-Wl,--fatal-warnings",
|
"-Wl,--fatal-warnings",
|
||||||
"-Wl,--no-undefined-version",
|
"-Wl,--no-undefined-version",
|
||||||
|
"-Wl,--exclude-libs,libgcc.a",
|
||||||
}
|
}
|
||||||
|
|
||||||
deviceGlobalLldflags = append(ClangFilterUnknownLldflags(deviceGlobalLdflags),
|
deviceGlobalLldflags = append(ClangFilterUnknownLldflags(deviceGlobalLdflags),
|
||||||
|
@@ -245,7 +245,10 @@ func (stl *stl) flags(ctx ModuleContext, flags Flags) Flags {
|
|||||||
ndkSrcRoot := android.PathForSource(ctx, "prebuilts/ndk/current/sources/cxx-stl/system/include")
|
ndkSrcRoot := android.PathForSource(ctx, "prebuilts/ndk/current/sources/cxx-stl/system/include")
|
||||||
flags.CFlags = append(flags.CFlags, "-isystem "+ndkSrcRoot.String())
|
flags.CFlags = append(flags.CFlags, "-isystem "+ndkSrcRoot.String())
|
||||||
case "ndk_libc++_shared", "ndk_libc++_static":
|
case "ndk_libc++_shared", "ndk_libc++_static":
|
||||||
// Nothing.
|
if ctx.Arch().ArchType == android.Arm {
|
||||||
|
// Make sure the _Unwind_XXX symbols are not re-exported.
|
||||||
|
flags.LdFlags = append(flags.LdFlags, "-Wl,--exclude-libs,libunwind.a")
|
||||||
|
}
|
||||||
case "":
|
case "":
|
||||||
// None or error.
|
// None or error.
|
||||||
if !ctx.toolchain().Bionic() {
|
if !ctx.toolchain().Bionic() {
|
||||||
|
Reference in New Issue
Block a user