| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
| 8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
| 9 } | 9 } |
| 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 # to say that it does. Define them here instead. | 564 # to say that it does. Define them here instead. |
| 565 defines += [ "HAVE_SYS_UIO_H" ] | 565 defines += [ "HAVE_SYS_UIO_H" ] |
| 566 | 566 |
| 567 # Use gold for Android for most CPU architectures. | 567 # Use gold for Android for most CPU architectures. |
| 568 if (current_cpu == "x86" || current_cpu == "x64" || current_cpu == "arm") { | 568 if (current_cpu == "x86" || current_cpu == "x64" || current_cpu == "arm") { |
| 569 ldflags += [ "-fuse-ld=gold" ] | 569 ldflags += [ "-fuse-ld=gold" ] |
| 570 if (is_clang) { | 570 if (is_clang) { |
| 571 # Let clang find the ld.gold in the NDK. | 571 # Let clang find the ld.gold in the NDK. |
| 572 ldflags += [ "--gcc-toolchain=$rebased_android_toolchain_root" ] | 572 ldflags += [ "--gcc-toolchain=$rebased_android_toolchain_root" ] |
| 573 } | 573 } |
| 574 |
| 575 # Use -mstackrealign due to a bug on ia32 Jelly Bean. |
| 576 # See crbug.com/521527 |
| 577 if (current_cpu == "x86") { |
| 578 cflags += [ "-mstackrealign" ] |
| 579 } |
| 574 } | 580 } |
| 575 | 581 |
| 576 ldflags += [ | 582 ldflags += [ |
| 577 "-Wl,--no-undefined", | 583 "-Wl,--no-undefined", |
| 578 | 584 |
| 579 # Don't allow visible symbols from libgcc or libc++ to be | 585 # Don't allow visible symbols from libgcc or libc++ to be |
| 580 # re-exported. | 586 # re-exported. |
| 581 "-Wl,--exclude-libs=libgcc.a", | 587 "-Wl,--exclude-libs=libgcc.a", |
| 582 "-Wl,--exclude-libs=libc++_static.a", | 588 "-Wl,--exclude-libs=libc++_static.a", |
| 583 | 589 |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 cflags += [ "-gsplit-dwarf" ] | 1333 cflags += [ "-gsplit-dwarf" ] |
| 1328 } | 1334 } |
| 1329 } | 1335 } |
| 1330 } | 1336 } |
| 1331 | 1337 |
| 1332 config("no_symbols") { | 1338 config("no_symbols") { |
| 1333 if (!is_win) { | 1339 if (!is_win) { |
| 1334 cflags = [ "-g0" ] | 1340 cflags = [ "-g0" ] |
| 1335 } | 1341 } |
| 1336 } | 1342 } |
| OLD | NEW |