Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 806533003: android: don't export unnecessary symbols. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/common.gypi ('k') | mojo/mojo_public_gles2_for_loadable_module.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 (cpu_arch == "mipsel" || cpu_arch == "mips64el") { 9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") {
10 import("//build/config/mips.gni") 10 import("//build/config/mips.gni")
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 if (is_clang) { 442 if (is_clang) {
443 # Let clang find the ld.gold in the NDK. 443 # Let clang find the ld.gold in the NDK.
444 ldflags += [ "--gcc-toolchain=" + 444 ldflags += [ "--gcc-toolchain=" +
445 rebase_path(android_toolchain_root, root_build_dir) ] 445 rebase_path(android_toolchain_root, root_build_dir) ]
446 } 446 }
447 } 447 }
448 448
449 ldflags += [ 449 ldflags += [
450 "-Wl,--no-undefined", 450 "-Wl,--no-undefined",
451 451
452 # Don't export symbols from statically linked libraries. 452 # Don't allow visible symbols from libgcc or stlport to be
453 "-Wl,--exclude-libs=ALL", 453 # re-exported.
454 "-Wl,--exclude-libs=libgcc.a",
455 "-Wl,--exclude-libs=libstlport_static.a",
456
457 # Don't allow visible symbols from libraries that contain
458 # assembly code with symbols that aren't hidden properly.
459 # http://crbug.com/448386
460 "-Wl,--exclude-libs=libvpx_assembly_arm.a",
454 ] 461 ]
455 if (cpu_arch == "arm") { 462 if (cpu_arch == "arm") {
456 ldflags += [ 463 ldflags += [
457 # Enable identical code folding to reduce size. 464 # Enable identical code folding to reduce size.
458 "-Wl,--icf=safe", 465 "-Wl,--icf=safe",
459 ] 466 ]
460 } 467 }
461 468
462 if (is_clang) { 469 if (is_clang) {
463 if (cpu_arch == "arm") { 470 if (cpu_arch == "arm") {
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 cflags += [ "-gsplit-dwarf" ] 1074 cflags += [ "-gsplit-dwarf" ]
1068 } 1075 }
1069 } 1076 }
1070 } 1077 }
1071 1078
1072 config("no_symbols") { 1079 config("no_symbols") {
1073 if (!is_win) { 1080 if (!is_win) {
1074 cflags = [ "-g0" ] 1081 cflags = [ "-g0" ]
1075 } 1082 }
1076 } 1083 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | mojo/mojo_public_gles2_for_loadable_module.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698