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

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

Issue 1561833007: [Chromecast] Don't export symbols from libffmpeg.a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 6
7 assert(is_chromecast) 7 assert(is_chromecast)
8 8
9 config("static_config") { 9 config("static_config") {
10 ldflags = [ 10 ldflags = [
11 # We want to statically link libstdc++/libgcc. 11 # We want to statically link libstdc++/libgcc.
12 "-static-libstdc++", 12 "-static-libstdc++",
13 "-static-libgcc", 13 "-static-libgcc",
14 # Don't allow visible symbols from libraries that contain
15 # assembly code with symbols that aren't hidden properly.
16 # http://b/26390825
17 '-Wl,--exclude-libs=libffmpeg.a',
14 ] 18 ]
15 } 19 }
16 20
17 config("executable_config") { 21 config("executable_config") {
18 if (current_cpu == "arm") { 22 if (current_cpu == "arm") {
19 ldflags = [ 23 ldflags = [
20 # Export stdlibc++ and libgcc symbols to force shlibs to refer to these 24 # Export stdlibc++ and libgcc symbols to force shlibs to refer to these
21 # symbols from the executable. 25 # symbols from the executable.
22 "-Wl,--export-dynamic", 26 "-Wl,--export-dynamic",
23 27
(...skipping 13 matching lines...) Expand all
37 # dynamic dependency on them. 41 # dynamic dependency on them.
38 configs = [ ":static_config" ] 42 configs = [ ":static_config" ]
39 } 43 }
40 } 44 }
41 45
42 config("shared_library_config") { 46 config("shared_library_config") {
43 if (current_cpu == "arm") { 47 if (current_cpu == "arm") {
44 configs = [ ":static_config" ] 48 configs = [ ":static_config" ]
45 } 49 }
46 } 50 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698