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

Unified Diff: build/config/compiler/BUILD.gn

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 | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 4b624cfe3d107f35edc763d7bb22e54819e70f3b..71a6b28e9f51e677651b6e5b273238a7774f219d 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1280,6 +1280,14 @@ if (is_win) {
# Functions interposed by the sanitizers can make ld think
# that some libraries aren't needed when they actually are,
# http://crbug.com/234010. As workaround, disable --as-needed.
+ if (!is_nacl && !is_android) {
Nico 2016/06/28 21:56:23 what about chromeos? should this only happen if is
pcc1 2016/06/28 22:19:34 This should probably be testing for whether the st
+ # TODO(pcc): Fix linker bug which requires us to link pthread
+ # unconditionally here (crbug.com/623236).
+ common_optimize_on_ldflags += [
+ "-Wl,--no-as-needed",
+ "-lpthread",
+ ]
+ }
common_optimize_on_ldflags += [ "-Wl,--as-needed" ]
}
}
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698