Index: chrome/chrome_android.gypi |
diff --git a/chrome/chrome_android.gypi b/chrome/chrome_android.gypi |
index 48e8cdb08593cb8da12b1da5aaf9ae45a6136f23..00a3af2ad8ab8e9f190fb23c94bcec79f7b92985 100644 |
--- a/chrome/chrome_android.gypi |
+++ b/chrome/chrome_android.gypi |
@@ -44,6 +44,13 @@ |
'dependencies': [ |
'../base/allocator/allocator.gyp:allocator', ], |
}], |
+ ['OS=="android"', { |
+ 'ldflags': [ |
+ # Some android targets still depend on --gc-sections to link. |
+ # TODO: remove --gc-sections for Debug builds (crbug.com/159847). |
+ '-Wl,--gc-sections', |
+ ], |
+ }], |
], |
}, |
{ |