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