diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-18 10:38:04 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-18 10:38:04 +0000 |
commit | b39fec83e7d9058cd68d323d808ddbab436d4887 (patch) | |
tree | 8b38b43f254f48a3651fdd142b11b48c19d51aa7 /build | |
parent | 5d965c650ca5eb0e0c5eae72a8ee96a535b3cc4f (diff) | |
download | chromium_src-b39fec83e7d9058cd68d323d808ddbab436d4887.zip chromium_src-b39fec83e7d9058cd68d323d808ddbab436d4887.tar.gz chromium_src-b39fec83e7d9058cd68d323d808ddbab436d4887.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/126267
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18700 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/common.gypi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index f7ec8c2..202900e 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -350,6 +350,7 @@ 'cflags': [ '-m32', '-fno-exceptions', + '-fno-threadsafe-statics', '-Wall', ], 'ldflags': [ |