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

Unified Diff: build/common.gypi

Issue 12789009: 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, 9 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 11920ea8b847b701d1576bd8fd2c50f85eab2dc8..1032365c1b3bdf28e398bc83a5c193fd87ba9c19 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2535,6 +2535,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.
@@ -2549,7 +2556,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