Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7357)

Unified Diff: chromecast/chromecast.gyp

Issue 1476923004: [Chromecast] Include all stdlibc++/libgcc symbols in cast_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698