diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-21 20:23:12 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-21 20:23:12 +0000 |
commit | 3df6e3a85be5fc9f340da650111b51dde10d18f2 (patch) | |
tree | 10da3b07614231b38a1a321e8066841743af4617 /build | |
parent | 4ec2accdefd754ca79bbed38c88a98407056dcbf (diff) | |
download | chromium_src-3df6e3a85be5fc9f340da650111b51dde10d18f2.zip chromium_src-3df6e3a85be5fc9f340da650111b51dde10d18f2.tar.gz chromium_src-3df6e3a85be5fc9f340da650111b51dde10d18f2.tar.bz2 |
linux: always set visibility=hidden
This is necessary to make some plugins work. Satoru has a patch to
do backtraces in a different manner.
BUG=32762
TEST=about:plugins doesn't call random other plugins the native client plugin
Review URL: http://codereview.chromium.org/553047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build/common.gypi b/build/common.gypi index 4f6d4bb..6bbc3f7 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -591,6 +591,9 @@ '-fno-exceptions', '-Wall', '-D_FILE_OFFSET_BITS=64', + # Don't export any symbols (for example, to plugins we dlopen()). + # Note: this is *required* to make some plugins work. + '-fvisibility=hidden', ], 'cflags_cc': [ '-fno-rtti', @@ -700,10 +703,6 @@ # can be removed at link time with --gc-sections. '-fdata-sections', '-ffunction-sections', - # Don't export any symbols (for example, to plugins we dlopen()). - # This must be in Release builds only because otherwise we don't - # get backtraces. - '-fvisibility=hidden', # We don't use exceptions. The eh_frame section is used for those # and for symbolizing backtraces. By passing this flag we drop # the eh_frame section completely, we shaving off 2.5mb from |