summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 11:02:16 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 11:02:16 +0000
commit1c6560af70d9aa8385a964a2d6c742a078292f5d (patch)
treef44ed0a4c3ed644091e5ebd216e8f637ade4a4e3 /build
parent2423f94cd41891fbb5dad86f5a49a7964350f5d9 (diff)
downloadchromium_src-1c6560af70d9aa8385a964a2d6c742a078292f5d.zip
chromium_src-1c6560af70d9aa8385a964a2d6c742a078292f5d.tar.gz
chromium_src-1c6560af70d9aa8385a964a2d6c742a078292f5d.tar.bz2
Add -fno-threadsafe-statics to the Linux build.
We already depend on our static initializers being thread safe, since MSVC does not implement locking around static initialization. This avoids extra locking (__cxa_guard_acquire / __cxa_guard_release). Review URL: http://codereview.chromium.org/149607 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20616 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 af07408..8b47f52 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -334,6 +334,9 @@
'-fno-exceptions',
'-Wall',
],
+ 'cflags_cc': [
+ '-fno-threadsafe-statics',
+ ],
}, { # else: target_arch != "arm"
'asflags': [
# Needed so that libs with .s files (e.g. libicudata.a)
@@ -379,6 +382,9 @@
'-fno-exceptions',
'-Wall',
],
+ 'cflags_cc': [
+ '-fno-threadsafe-statics',
+ ],
'ldflags': [
'-m32',
],