diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index b5e2279..da571a9 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -493,6 +493,7 @@ '<(werror)', # See note above about the werror variable. '-pthread', '-fno-exceptions', + '-fvisibility=hidden', '-Wall', '-D_FILE_OFFSET_BITS=64', ], @@ -694,6 +695,11 @@ 'cflags': [ '-gstabs' ], 'defines': ['USE_LINUX_BREAKPAD'], }], + ['library=="shared_library"', { + # When building with shared libraries, remove the visiblity-hiding + # flag. + 'cflags!': [ '-fvisibility=hidden' ], + }], ], }, }], |