| 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 # 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 Loading... |
| 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 } |
| OLD | NEW |