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

Unified Diff: base/base.gyp

Issue 1699713002: Fix "undefined reference to '__atomic_is_lock_free'" errors on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix use_sysroot for gyp Created 4 years, 10 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 | « base/BUILD.gn ('k') | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base.gyp
diff --git a/base/base.gyp b/base/base.gyp
index 4fd8954ac70ba03f76626ea629871a784449d460..44e0e72e8e9f9cae358ef5e08e47f8c5d3e8341e 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -139,6 +139,14 @@
}],
],
}],
+ ['use_sysroot==0 and (OS == "android" or OS == "linux")', {
+ 'link_settings': {
+ 'libraries': [
+ # Needed for <atomic> when building with newer C++ library.
+ '-latomic',
+ ],
+ },
+ }],
['OS == "win"', {
# Specify delayload for base.dll.
'msvs_settings': {
« no previous file with comments | « base/BUILD.gn ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698