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 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 if (is_posix) { | 9 if (is_posix) { |
10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 "-B" + rebase_path("//build/android/arm-linux-androideabi-gold", | 283 "-B" + rebase_path("//build/android/arm-linux-androideabi-gold", |
284 root_build_dir) | 284 root_build_dir) |
285 ] | 285 ] |
286 } else { | 286 } else { |
287 ldflags += [ "-fuse-ld=gold" ] | 287 ldflags += [ "-fuse-ld=gold" ] |
288 } | 288 } |
289 } | 289 } |
290 | 290 |
291 ldflags += [ | 291 ldflags += [ |
292 "-Wl,--no-undefined", | 292 "-Wl,--no-undefined", |
293 # Don't export symbols from statically linked libraries. | |
294 "-Wl,--exclude-libs=ALL", | |
295 ] | 293 ] |
296 if (cpu_arch == "arm") { | 294 if (cpu_arch == "arm") { |
297 ldflags += [ | 295 ldflags += [ |
298 # Enable identical code folding to reduce size. | 296 # Enable identical code folding to reduce size. |
299 "-Wl,--icf=safe", | 297 "-Wl,--icf=safe", |
300 ] | 298 ] |
301 } | 299 } |
302 | 300 |
303 if (is_clang) { | 301 if (is_clang) { |
304 if (cpu_arch == "arm") { | 302 if (cpu_arch == "arm") { |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 } else { | 838 } else { |
841 cflags = [ "-g1" ] | 839 cflags = [ "-g1" ] |
842 } | 840 } |
843 } | 841 } |
844 | 842 |
845 config("no_symbols") { | 843 config("no_symbols") { |
846 if (!is_win) { | 844 if (!is_win) { |
847 cflags = [ "-g0" ] | 845 cflags = [ "-g0" ] |
848 } | 846 } |
849 } | 847 } |
OLD | NEW |