| 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..98e7a4bd69579202bf42477f7bd53f3dfe2a443b
|
| --- /dev/null
|
| +++ b/build/config/chromecast/BUILD.gn
|
| @@ -0,0 +1,24 @@
|
| +# 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("executable_config") {
|
| + ldflags = [
|
| + # We want to statically link libstdc++/libgcc_s. Export the libstdc++
|
| + # symbols so multiple copies merge at runtime.
|
| + "-Wl,--export-dynamic",
|
| + "-static-libstdc++",
|
| + "-static-libgcc",
|
| + "-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",
|
| + ]
|
| +}
|
|
|