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

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

Issue 1384673004: GN: Fix Chrome crashing on start-up (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/BUILD.gn
diff --git a/build/config/android/BUILD.gn b/build/config/android/BUILD.gn
index 0503bef1e1f3edd4ef79313dbbb37deeab1d87d5..a96c71fec182ac0f63b2a3063ae2f7aa0879d562 100644
--- a/build/config/android/BUILD.gn
+++ b/build/config/android/BUILD.gn
@@ -146,18 +146,18 @@ config("runtime_library") {
defines = [ "__GNU_SOURCE=1" ] # Necessary for clone().
ldflags = [ "-nostdlib" ]
lib_dirs = [ "$android_libcpp_root/libs/$android_app_abi" ]
- libs = [
- "c",
- "dl",
- "m",
- ]
- # The libc++ runtime library.
+ # The libc++ runtime library (must come first).
if (is_component_build) {
- libs += [ "c++_shared" ]
+ libs = [ "c++_shared" ]
} else {
- libs += [ "c++_static" ]
+ libs = [ "c++_static" ]
}
+ libs += [
+ "c",
+ "dl",
+ "m",
+ ]
if (is_clang) {
# Work around incompatibilities between bionic and clang headers.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698