Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: build/common.gypi

Issue 2094273003: Disable --as-needed for libpthread to work around linker bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable for android Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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': [
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698