From 1c6560af70d9aa8385a964a2d6c742a078292f5d Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Tue, 14 Jul 2009 11:02:16 +0000 Subject: 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 --- build/common.gypi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build') 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', ], -- cgit v1.1