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

Unified Diff: build/common.gypi

Issue 13772007: Android: fix link error for android_full_debug=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months 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: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 0fe8b73a27892551156cd5ee253a5398b17a5165..95af102f55eced5041102123d5966936038884f0 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2589,6 +2589,13 @@
'-g',
],
'conditions' : [
+ ['OS=="android"', {
+ # Only link with needed input sections. This is to avoid getting
+ # undefined reference to __cxa_bad_typeid in the CDU library.
+ 'ldflags': [
+ '-Wl,--gc-sections',
+ ],
+ }],
['OS=="android" and android_full_debug==0', {
# Some configurations are copied from Release_Base to reduce
# the binary size.
@@ -2603,7 +2610,6 @@
'ldflags': [
'-Wl,-O1',
'-Wl,--as-needed',
- '-Wl,--gc-sections',
],
}],
['OS=="linux" and target_arch=="ia32"', {
« 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