summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-27 21:40:26 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-27 21:40:26 +0000
commit7cd2afd1788641996735e7742aff93029bb112b9 (patch)
tree486e12c3c5bf635f97859c66675a58f17f576c1c /build
parentf8999644c114f91d4ea0eeea1d3edf8428a762c1 (diff)
downloadchromium_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.gypi6
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' ],
+ }],
],
},
}],