| 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"', {
|
|
|