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
diff --git a/build/common.gypi b/build/common.gypi
index 4f6d4bb..6bbc3f71 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