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

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

Issue 1476923004: [Chromecast] Include all stdlibc++/libgcc symbols in cast_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Updated comment. Created 5 years 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/config/BUILDCONFIG.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/chromecast/BUILD.gn
diff --git a/build/config/chromecast/BUILD.gn b/build/config/chromecast/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..3ac7ff4fd2560b739286d86ad84910a722673848
--- /dev/null
+++ b/build/config/chromecast/BUILD.gn
@@ -0,0 +1,37 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+assert(is_chromecast)
+
+config("static_config") {
+ ldflags = [
+ # We want to statically link libstdc++/libgcc.
+ "-static-libstdc++",
+ "-static-libgcc",
+ ]
+}
+
+config("executable_config") {
+ ldflags = [
+ # Export stdlibc++ and libgcc symbols to force shlibs to refer to these
+ # symbols from the executable.
+ "-Wl,--export-dynamic",
+
+ "-lm", # stdlibc++ requires math.h
+
+ # In case we redefined stdlibc++ symbols (e.g. tc_malloc)
+ "-Wl,--allow-multiple-definition",
+
+ "-Wl,--whole-archive",
+ "-l:libstdc++.a",
+ "-l:libgcc.a",
+ "-Wl,--no-whole-archive",
+ ]
+
+ configs = [ ":static_config" ]
bcf 2015/12/02 02:37:23 @wzhong, we talked about how this may not be neces
wzhong 2015/12/02 02:42:52 Please add this to comment as this is not obvious
bcf 2015/12/02 03:20:23 Done.
+}
+
+config("shlib_config") {
+ configs = [ ":static_config" ]
+}
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698