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
diff --git a/build/common.gypi b/build/common.gypi
index af07408..8b47f529b 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',
             ],