Chromium Code Reviews| Index: chromecast/chromecast.gyp |
| diff --git a/chromecast/chromecast.gyp b/chromecast/chromecast.gyp |
| index 87988e61b93956849475ab4e956a98fb3ae30a67..38f734eb6e54ec3fa93f73d93900fe369633b721 100644 |
| --- a/chromecast/chromecast.gyp |
| +++ b/chromecast/chromecast.gyp |
| @@ -76,6 +76,21 @@ |
| ], |
| }, |
| }, |
| + # Applies linker flags to include whole libstdc++/libgcc and export them. |
| + { |
| + 'target_name': 'cast_shlib_consumer_ldflags', |
|
bcf
2015/11/25 19:31:23
This is a target any executable which uses libcast
|
| + 'type': '<(component)', |
| + 'link_settings': { |
| + 'ldflags': ['-Wl,--export-dynamic'], |
| + 'libraries': [ |
| + '-Wl,--allow-multiple-definition', |
| + '-Wl,--whole-archive', |
| + '-l:libstdc++.a', |
| + '-l:libgcc.a', |
| + '-Wl,--no-whole-archive', |
| + ], |
| + }, |
| + }, |
| { |
| 'target_name': 'cast_base', |
| 'type': '<(component)', |
| @@ -775,6 +790,7 @@ |
| 'type': 'executable', |
| 'dependencies': [ |
| 'cast_shell_core', |
| + 'cast_shlib_consumer_ldflags', |
|
wzhong
2015/11/25 20:46:26
This only covers cast_shell.
How about other exec
|
| ], |
| 'sources': [ |
| 'app/cast_main.cc', |