OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 assert(is_chromecast) |
| 6 |
| 7 config("static_config") { |
| 8 ldflags = [ |
| 9 # We want to statically link libstdc++/libgcc. |
| 10 "-static-libstdc++", |
| 11 "-static-libgcc", |
| 12 ] |
| 13 } |
| 14 |
| 15 config("executable_config") { |
| 16 ldflags = [ |
| 17 "-lm", # stdlibc++ requires math.h |
| 18 |
| 19 # Export the libstdc++ symbols so multiple copies merge at runtime. |
| 20 "-Wl,--export-dynamic", |
| 21 |
| 22 # In case we redefined stdlibc++ symbols (e.g. tc_malloc) |
| 23 "-Wl,--allow-multiple-definition", |
| 24 |
| 25 "-Wl,--whole-archive", |
| 26 "-l:libstdc++.a", |
| 27 "-l:libgcc.a", |
| 28 "-Wl,--no-whole-archive", |
| 29 ] |
| 30 |
| 31 configs = [ ":static_config" ] |
| 32 } |
| 33 |
| 34 config("shlib_config") { |
| 35 configs = [ ":static_config" ] |
| 36 } |
OLD | NEW |