summaryrefslogtreecommitdiffstats
path: root/build/linux
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 01:09:05 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-25 01:09:05 +0000
commitd07f31723cd037a8c6bef60b234fdb4ad746f34a (patch)
tree33429c33cb0e0b70fd781b6ac4e514e2d9704009 /build/linux
parentff9d29ee722c53ef8d1a3c57100fd8c8b1130e7e (diff)
downloadchromium_src-d07f31723cd037a8c6bef60b234fdb4ad746f34a.zip
chromium_src-d07f31723cd037a8c6bef60b234fdb4ad746f34a.tar.gz
chromium_src-d07f31723cd037a8c6bef60b234fdb4ad746f34a.tar.bz2
linux: call g_thread_init() at relevant startup points
According to glib docs, we need to do this if it's at all possible for us to hit glib on multiple threads. This may be happening when we grab plugin metadata from the file thread. Rather than explicitly depending on gthread all over the place, just put it in with the GTK dep (since anywhere we're using GTK we ought to init gthread). (Note that this is *not* initializing the GDK locking system.) BUG=18957 Review URL: http://codereview.chromium.org/174264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24203 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/linux')
-rw-r--r--build/linux/system.gyp23
1 files changed, 3 insertions, 20 deletions
diff --git a/build/linux/system.gyp b/build/linux/system.gyp
index 68b52be..e10c905 100644
--- a/build/linux/system.gyp
+++ b/build/linux/system.gyp
@@ -9,15 +9,15 @@
'type': 'settings',
'direct_dependent_settings': {
'cflags': [
- '<!@(pkg-config --cflags gtk+-2.0)',
+ '<!@(pkg-config --cflags gtk+-2.0 gthread-2.0)',
],
},
'link_settings': {
'ldflags': [
- '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0)',
+ '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
],
'libraries': [
- '<!@(pkg-config --libs-only-l gtk+-2.0)',
+ '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
],
},
},
@@ -107,23 +107,6 @@
},
},
{
- 'target_name': 'gthread',
- 'type': 'settings',
- 'direct_dependent_settings': {
- 'cflags': [
- '<!@(pkg-config --cflags gthread-2.0)',
- ],
- },
- 'link_settings': {
- 'ldflags': [
- '<!@(pkg-config --libs-only-L --libs-only-other gthread-2.0)',
- ],
- 'libraries': [
- '<!@(pkg-config --libs-only-l gthread-2.0)',
- ],
- },
- },
- {
'target_name': 'x11',
'type': 'settings',
'direct_dependent_settings': {