Merge "Build libdl for risc-v."

This commit is contained in:
Treehugger Robot 2022-10-12 03:14:04 +00:00 committed by Gerrit Code Review
commit 8f548122ad

View file

@ -74,6 +74,7 @@ cc_library {
"-Wl,--exclude-libs=libclang_rt.builtins-arm-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-aarch64-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-i686-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-riscv64-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-x86_64-android.a",
],
@ -87,6 +88,9 @@ cc_library {
arm64: {
version_script: ":libdl.arm64.map",
},
riscv64: {
version_script: ":libdl.riscv64.map",
},
x86: {
pack_relocations: false,
ldflags: [
@ -174,6 +178,7 @@ cc_library {
"-Wl,--exclude-libs=libclang_rt.builtins-arm-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-aarch64-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-i686-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-riscv64-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-x86_64-android.a",
],
@ -253,6 +258,14 @@ genrule {
cmd: "$(location generate-version-script) arm64 $(in) $(out)",
}
genrule {
name: "libdl.riscv64.map",
out: ["libdl.riscv64.map"],
srcs: ["libdl.map.txt"],
tools: ["generate-version-script"],
cmd: "$(location generate-version-script) riscv64 $(in) $(out)",
}
genrule {
name: "libdl.x86.map",
out: ["libdl.x86.map"],