diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 21:40:26 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 21:40:26 +0000 |
commit | 7cd2afd1788641996735e7742aff93029bb112b9 (patch) | |
tree | 486e12c3c5bf635f97859c66675a58f17f576c1c /build | |
parent | f8999644c114f91d4ea0eeea1d3edf8428a762c1 (diff) | |
download | chromium_src-7cd2afd1788641996735e7742aff93029bb112b9.zip chromium_src-7cd2afd1788641996735e7742aff93029bb112b9.tar.gz chromium_src-7cd2afd1788641996735e7742aff93029bb112b9.tar.bz2 |
linux: add -fvisibility=hidden to build flags
We use this on OS X, so it shouldn't be harmful and it will fix a visibility
issue that came up in
http://groups.google.com/group/chromium-dev/browse_thread/thread/800bda968bdc8f29
BUG=17943
Review URL: http://codereview.chromium.org/332035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30253 0039d316-1c4b-4281-b951-d872f2087c98
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' ], + }], ], }, }], |