linux: set -fvisiblility-inlines-hidden when building
This matches the Mac and shaves a surprising 300kb off the binary.
Review URL: http://codereview.chromium.org/402003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32185 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/common.gypi b/build/common.gypi
index 4652db4..6a703abd 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -508,6 +508,9 @@
'cflags_cc': [
'-fno-rtti',
'-fno-threadsafe-statics',
+ # Make inline functions have hidden visiblity by default.
+ # Surprisingly, not covered by -fvisibility=hidden.
+ '-fvisibility-inlines-hidden',
],
'ldflags': [
'-pthread',