| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 70f1fd2374c5dd5947a3acaafefd4ab57ea8d7d2..95f74e6636b2d1438258eab8602200604afff0e8 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -406,10 +406,23 @@ config("runtime_library") {
|
| }
|
| }
|
|
|
| + if (cpu_arch == "mipsel") {
|
| + libs += [
|
| + # ld linker is used for mips Android, and ld does not accept library
|
| + # absolute path prefixed by "-l"; Since libgcc does not exist in mips
|
| + # sysroot the proper library will be linked.
|
| + # TODO(gordanac): Remove once gold linker is used for mips Android.
|
| + "gcc",
|
| + ]
|
| + } else {
|
| + libs += [
|
| + # Manually link the libgcc.a that the cross compiler uses. This is
|
| + # absolute because the linker will look inside the sysroot if it's not.
|
| + rebase_path(android_libgcc_file),
|
| + ]
|
| + }
|
| +
|
| libs += [
|
| - # Manually link the libgcc.a that the cross compiler uses. This is
|
| - # absolute because the linker will look inside the sysroot if it's not.
|
| - rebase_path(android_libgcc_file),
|
| "c",
|
| "dl",
|
| "m",
|
|
|