Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 75cb12e9d28d491ae97381a17ef1da26a9cbd773..85a40da6c395d2a4b060a2da70368415b38c2dae 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -2757,10 +2757,14 @@ |
], |
'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,--fatal-warnings', |
+ # Only link with needed input sections. This is to avoid |
+ # getting undefined reference to __cxa_bad_typeid in the CDU |
+ # library. |
'-Wl,--gc-sections', |
+ # Warn in case of text relocations. |
+ '-Wl,--warn-shared-textrel', |
], |
}], |
['OS=="android" and android_full_debug==0', { |
@@ -2830,6 +2834,11 @@ |
'cflags': [ |
'-fomit-frame-pointer', |
], |
+ 'ldflags': [ |
+ '-Wl,--fatal-warnings', |
+ # Warn in case of text relocations. |
+ '-Wl,--warn-shared-textrel', |
+ ], |
}], |
['clang==1', { |
'cflags!': [ |