OLD | NEW |
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 |
14 # Don't allow visible symbols from libraries that contain | 15 # Don't allow visible symbols from libraries that contain |
15 # assembly code with symbols that aren't hidden properly. | 16 # assembly code with symbols that aren't hidden properly. |
16 # http://b/26390825 | 17 # http://b/26390825 |
17 '-Wl,--exclude-libs=libffmpeg.a', | 18 "-Wl,--exclude-libs=libffmpeg.a", |
18 ] | 19 ] |
19 } | 20 } |
20 | 21 |
21 config("executable_config") { | 22 config("executable_config") { |
22 if (current_cpu == "arm") { | 23 if (current_cpu == "arm") { |
23 ldflags = [ | 24 ldflags = [ |
24 # Export stdlibc++ and libgcc symbols to force shlibs to refer to these | 25 # Export stdlibc++ and libgcc symbols to force shlibs to refer to these |
25 # symbols from the executable. | 26 # symbols from the executable. |
26 "-Wl,--export-dynamic", | 27 "-Wl,--export-dynamic", |
27 | 28 |
(...skipping 13 matching lines...) Expand all Loading... |
41 # dynamic dependency on them. | 42 # dynamic dependency on them. |
42 configs = [ ":static_config" ] | 43 configs = [ ":static_config" ] |
43 } | 44 } |
44 } | 45 } |
45 | 46 |
46 config("shared_library_config") { | 47 config("shared_library_config") { |
47 if (current_cpu == "arm") { | 48 if (current_cpu == "arm") { |
48 configs = [ ":static_config" ] | 49 configs = [ ":static_config" ] |
49 } | 50 } |
50 } | 51 } |
OLD | NEW |