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

Side by Side Diff: build/common.gypi

Issue 83553002: When building with component=shared_library on linux, add -rdynamic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 3470 matching lines...) Expand 10 before | Expand all | Expand 10 after
3481 ['_toolset=="target"', { 3481 ['_toolset=="target"', {
3482 'ldflags': [ 3482 'ldflags': [
3483 # Workaround for linker OOM. 3483 # Workaround for linker OOM.
3484 '-Wl,--no-keep-memory', 3484 '-Wl,--no-keep-memory',
3485 ], 3485 ],
3486 }], 3486 }],
3487 ], 3487 ],
3488 }], 3488 }],
3489 ], 3489 ],
3490 }], 3490 }],
3491 ['component=="shared_library"', {
3492 # See crbug.com/112389. Also required for BACKTRACE() to work.
3493 # TODO(glider): replace with --dynamic-list or something
3494 'ldflags': ['-rdynamic'],
3495 }],
3491 ['linux_use_heapchecker==1', { 3496 ['linux_use_heapchecker==1', {
3492 'variables': {'linux_use_tcmalloc%': 1}, 3497 'variables': {'linux_use_tcmalloc%': 1},
3493 'defines': [ 3498 'defines': [
3494 'USE_HEAPCHECKER', 3499 'USE_HEAPCHECKER',
3495 'MEMORY_TOOL_REPLACES_ALLOCATOR', 3500 'MEMORY_TOOL_REPLACES_ALLOCATOR',
3496 ], 3501 ],
3497 'conditions': [
3498 ['component=="shared_library"', {
3499 # See crbug.com/112389
3500 # TODO(glider): replace with --dynamic-list or something
3501 'ldflags': ['-rdynamic'],
3502 }],
3503 ],
3504 }], 3502 }],
3505 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { 3503 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', {
3506 'defines': ['NO_TCMALLOC'], 3504 'defines': ['NO_TCMALLOC'],
3507 }], 3505 }],
3508 ['linux_keep_shadow_stacks==1', { 3506 ['linux_keep_shadow_stacks==1', {
3509 'defines': ['KEEP_SHADOW_STACKS'], 3507 'defines': ['KEEP_SHADOW_STACKS'],
3510 'cflags': [ 3508 'cflags': [
3511 '-finstrument-functions', 3509 '-finstrument-functions',
3512 # Allow mmx intrinsics to inline, so that the compiler can expand 3510 # Allow mmx intrinsics to inline, so that the compiler can expand
3513 # the intrinsics. 3511 # the intrinsics.
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
4745 # settings in target dicts. SYMROOT is a special case, because many other 4743 # settings in target dicts. SYMROOT is a special case, because many other
4746 # Xcode variables depend on it, including variables such as 4744 # Xcode variables depend on it, including variables such as
4747 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4745 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4748 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4746 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4749 # files to appear (when present) in the UI as actual files and not red 4747 # files to appear (when present) in the UI as actual files and not red
4750 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4748 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4751 # and therefore SYMROOT, needs to be set at the project level. 4749 # and therefore SYMROOT, needs to be set at the project level.
4752 'SYMROOT': '<(DEPTH)/xcodebuild', 4750 'SYMROOT': '<(DEPTH)/xcodebuild',
4753 }, 4751 },
4754 } 4752 }
OLDNEW
« 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