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