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

Side by Side Diff: build/common.gypi

Issue 1476923004: [Chromecast] Include all stdlibc++/libgcc symbols in cast_shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Remove --export-dynamic from shlib_config 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 unified diff | Download patch
« no previous file with comments | « no previous file | build/config/BUILDCONFIG.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 4130 matching lines...) Expand 10 before | Expand all | Expand 10 after
4141 # about it conflicting with '-mcpu=cortex-a9'. The flag 4141 # about it conflicting with '-mcpu=cortex-a9'. The flag
4142 # '-march=armv7-a' is actually redundant anyway because 4142 # '-march=armv7-a' is actually redundant anyway because
4143 # it is enabled by default when we built the toolchain. 4143 # it is enabled by default when we built the toolchain.
4144 # And using '-mcpu=cortex-a9' should be sufficient. 4144 # And using '-mcpu=cortex-a9' should be sufficient.
4145 '-mcpu=cortex-a9', 4145 '-mcpu=cortex-a9',
4146 '-funwind-tables', 4146 '-funwind-tables',
4147 # Breakpad requires symbols with debugging information 4147 # Breakpad requires symbols with debugging information
4148 '-g', 4148 '-g',
4149 ], 4149 ],
4150 'ldflags': [ 4150 'ldflags': [
4151 # We want to statically link libstdc++/libgcc_s. 4151 # We want to statically link libstdc++/libgcc.
4152 '-static-libstdc++', 4152 '-static-libstdc++',
4153 '-static-libgcc', 4153 '-static-libgcc',
4154 ], 4154 ],
4155 'cflags!': [ 4155 'cflags!': [
4156 # Some components in Chromium (e.g. v8, skia, ffmpeg) 4156 # Some components in Chromium (e.g. v8, skia, ffmpeg)
4157 # define their own cflags for arm builds that could 4157 # define their own cflags for arm builds that could
4158 # conflict with the flags we set here (e.g. 4158 # conflict with the flags we set here (e.g.
4159 # '-mcpu=cortex-a9'). Remove these flags explicitly. 4159 # '-mcpu=cortex-a9'). Remove these flags explicitly.
4160 '-march=armv7-a', 4160 '-march=armv7-a',
4161 '-mtune=cortex-a8', 4161 '-mtune=cortex-a8',
4162 ], 4162 ],
4163 'target_conditions': [
4164 [ '_type=="executable"', {
4165 # Statically link whole libstdc++ and libgcc in
4166 # executables to ensure only one copy at runtime.
4167 'ldflags': [
4168 # Export the libstdc++ symbols so multiple copies
4169 # merge at runtime.
byungchul 2015/12/02 01:03:22 The right description would be, "export the libstd
bcf 2015/12/02 02:26:02 Okay I reworded this sentence.
4170 '-Wl,--export-dynamic',
4171
4172 '-lm', # stdlibc++ requires math.h
4173
4174 # In case we redefined stdlibc++ symbols
4175 # (e.g. tc_malloc)
4176 '-Wl,--allow-multiple-definition',
4177
4178 '-Wl,--whole-archive',
4179 '-l:libstdc++.a',
4180 '-l:libgcc.a',
4181 '-Wl,--no-whole-archive',
4182 ],
4183 }]
4184 ],
4163 }], 4185 }],
4164 ], 4186 ],
4165 }], 4187 }],
4166 ], 4188 ],
4167 }], 4189 }],
4168 ['target_arch=="arm64"', { 4190 ['target_arch=="arm64"', {
4169 'target_conditions': [ 4191 'target_conditions': [
4170 ['_toolset=="target"', { 4192 ['_toolset=="target"', {
4171 'conditions': [ 4193 'conditions': [
4172 ['OS=="android"', { 4194 ['OS=="android"', {
(...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after
6373 # settings in target dicts. SYMROOT is a special case, because many other 6395 # settings in target dicts. SYMROOT is a special case, because many other
6374 # Xcode variables depend on it, including variables such as 6396 # Xcode variables depend on it, including variables such as
6375 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6397 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6376 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6398 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6377 # files to appear (when present) in the UI as actual files and not red 6399 # files to appear (when present) in the UI as actual files and not red
6378 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6400 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6379 # and therefore SYMROOT, needs to be set at the project level. 6401 # and therefore SYMROOT, needs to be set at the project level.
6380 'SYMROOT': '<(DEPTH)/xcodebuild', 6402 'SYMROOT': '<(DEPTH)/xcodebuild',
6381 }, 6403 },
6382 } 6404 }
OLDNEW
« no previous file with comments | « no previous file | build/config/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698