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: http://src.chromium.org/svn/trunk/src/build@20616 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
deanm@chromium.org 2009-07-14 11:02:16 +00:00
Родитель 4d8e00ace8
Коммит 4f060c6135
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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',
],