Exclude libclang_rt.builtins symbols

Similar to libgcc, libclang_rt.builtins symbols need to be excluded.

Bug: 29275768
Change-Id: Iaf7381de3b4dbd92997abd03667dea0baaab98e1
This commit is contained in:
Yi Kong 2018-08-31 19:01:56 -07:00
parent fc85c3c847
commit 7786a344ce
2 changed files with 14 additions and 2 deletions

View File

@ -43,7 +43,13 @@ cc_library {
// //
// DO NOT REMOVE --exclude-libs! // DO NOT REMOVE --exclude-libs!
ldflags: ["-Wl,--exclude-libs=libgcc.a"], ldflags: [
"-Wl,--exclude-libs=libgcc.a",
"-Wl,--exclude-libs=libclang_rt.builtins-arm-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-aarch64-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-x86-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-x86_64-android.a",
],
// for x86, exclude libgcc_eh.a for the same reasons as above // for x86, exclude libgcc_eh.a for the same reasons as above
arch: { arch: {

View File

@ -244,7 +244,13 @@ cc_library {
// //
// DO NOT REMOVE --exclude-libs! // DO NOT REMOVE --exclude-libs!
ldflags: ["-Wl,--exclude-libs=libgcc.a"], ldflags: [
"-Wl,--exclude-libs=libgcc.a",
"-Wl,--exclude-libs=libclang_rt.builtins-arm-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-aarch64-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-x86-android.a",
"-Wl,--exclude-libs=libclang_rt.builtins-x86_64-android.a",
],
// for x86, exclude libgcc_eh.a for the same reasons as above // for x86, exclude libgcc_eh.a for the same reasons as above
arch: { arch: {