Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 8db899a3434dd78a241cd4667556aa4bcd9a95b2..f5d107d0dc14f4b865cdaa75c592f66ef5d1ef08 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -3754,6 +3754,14 @@ |
'variables': { |
'release_optimize%': 's', |
}, |
+ }, { |
+ 'ldflags': [ |
+ # TODO(pcc): Fix linker bug which requires us to link pthread |
+ # unconditionally here (crbug.com/623236). |
+ '-Wl,--no-as-needed', |
+ '-lpthread', |
+ '-Wl,--as-needed', |
+ ], |
}], |
['profiling==1', { |
'cflags': [ |