Switch to libunwind to remove dependency on libgcc for musl
The libgcc dependency is only used for _Unwind* symbols, remove it now that libc_musl.so embeds libunwind.a. Bug: 215802826 Test: m USE_HOST_MUSL=true host-native Change-Id: I1ad4c1435fc0090c6df2d50d542d2203dfb94d7b
This commit is contained in:
@@ -65,7 +65,6 @@ var (
|
|||||||
|
|
||||||
linuxMuslLdflags = []string{
|
linuxMuslLdflags = []string{
|
||||||
"-nostdlib",
|
"-nostdlib",
|
||||||
"-lgcc", "-lgcc_eh",
|
|
||||||
"--sysroot /dev/null",
|
"--sysroot /dev/null",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -42,8 +42,6 @@ var (
|
|||||||
"-nodefaultlibs",
|
"-nodefaultlibs",
|
||||||
"-nostdlib",
|
"-nostdlib",
|
||||||
"-Wl,--no-dynamic-linker",
|
"-Wl,--no-dynamic-linker",
|
||||||
// for unwind
|
|
||||||
"-lgcc", "-lgcc_eh",
|
|
||||||
}
|
}
|
||||||
linuxX86Rustflags = []string{}
|
linuxX86Rustflags = []string{}
|
||||||
linuxX86Linkflags = []string{}
|
linuxX86Linkflags = []string{}
|
||||||
|
Reference in New Issue
Block a user