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 # Export stdlibc++ and libgcc symbols to force shlibs to refer to these | |
18 # symbols from the executable. | |
19 "-Wl,--export-dynamic", | |
20 | |
21 "-lm", # stdlibc++ requires math.h | |
22 | |
23 # In case we redefined stdlibc++ symbols (e.g. tc_malloc) | |
24 "-Wl,--allow-multiple-definition", | |
25 | |
26 "-Wl,--whole-archive", | |
27 "-l:libstdc++.a", | |
28 "-l:libgcc.a", | |
29 "-Wl,--no-whole-archive", | |
30 ] | |
31 | |
32 configs = [ ":static_config" ] | |
bcf
2015/12/02 02:37:23
@wzhong, we talked about how this may not be neces
wzhong
2015/12/02 02:42:52
Please add this to comment as this is not obvious
bcf
2015/12/02 03:20:23
Done.
| |
33 } | |
34 | |
35 config("shlib_config") { | |
36 configs = [ ":static_config" ] | |
37 } | |
OLD | NEW |