From b27dd36467f7df33521adc4ed6f330c6dc5c0302 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Tue, 17 Nov 2009 18:39:36 +0000 Subject: [PATCH] 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: http://src.chromium.org/svn/trunk/src/build@32185 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- common.gypi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common.gypi b/common.gypi index 4652db45a..6a703abdd 100644 --- a/common.gypi +++ b/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',