Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 58184d6fe36427dcc4714053021726fe04348075..29318a61e8244d134276c14e4ef22d46dc3910d3 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -3534,6 +3534,14 @@ |
], |
}, |
}], |
+ # TODO(thakis): Enable this everywhere. http://crbug.com/371125 |
+ ['OS=="linux" and chromeos==0 and component=="shared_library" and use_ozone!=1 and buildtype!="Official"', { |
+ 'target_defaults': { |
+ 'ldflags': [ |
+ '-Wl,-z,defs', |
+ ], |
+ }, |
+ }], |
['os_posix==1 and chromeos==0', { |
# Chrome OS enables -fstack-protector-strong via its build wrapper, |
# and we want to avoid overriding this, so stack-protector is only |