Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1100)

Side by Side Diff: build/common.gypi

Issue 17820002: Add compiler flags that prevent text relocations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment. Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sandbox/linux/sandbox_linux.gypi » ('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 2726 matching lines...) Expand 10 before | Expand all | Expand 10 after
2737 # http://code.google.com/p/chromium/issues/detail?id=90453 2737 # http://code.google.com/p/chromium/issues/detail?id=90453
2738 '-Wsign-compare', 2738 '-Wsign-compare',
2739 ], 2739 ],
2740 'ldflags': [ 2740 'ldflags': [
2741 '-pthread', '-Wl,-z,noexecstack', 2741 '-pthread', '-Wl,-z,noexecstack',
2742 ], 2742 ],
2743 'libraries' : [ 2743 'libraries' : [
2744 '<(libraries_for_target)', 2744 '<(libraries_for_target)',
2745 ], 2745 ],
2746 'configurations': { 2746 'configurations': {
2747 'Debug_Base': { 2747 'Debug_Base': {
Yaron 2013/07/02 18:08:13 We want this for release too, right?
shashi 2013/07/02 18:17:38 Good catch, right it should be for release too.
2748 'variables': { 2748 'variables': {
2749 'debug_optimize%': '0', 2749 'debug_optimize%': '0',
2750 }, 2750 },
2751 'defines': [ 2751 'defines': [
2752 '_DEBUG', 2752 '_DEBUG',
2753 ], 2753 ],
2754 'cflags': [ 2754 'cflags': [
2755 '-O>(debug_optimize)', 2755 '-O>(debug_optimize)',
2756 '-g', 2756 '-g',
2757 ], 2757 ],
2758 'conditions' : [ 2758 'conditions' : [
2759 ['OS=="android"', { 2759 ['OS=="android"', {
2760 # Only link with needed input sections. This is to avoid getting
2761 # undefined reference to __cxa_bad_typeid in the CDU library.
2762 'ldflags': [ 2760 'ldflags': [
2761 '-Wl,--fatal-warnings',
2762 # Only link with needed input sections. This is to avoid
2763 # getting undefined reference to __cxa_bad_typeid in the CDU
2764 # library.
2763 '-Wl,--gc-sections', 2765 '-Wl,--gc-sections',
2766 # Warn in case of text relocations.
2767 '-Wl,--warn-shared-textrel',
2764 ], 2768 ],
2765 }], 2769 }],
2766 ['OS=="android" and android_full_debug==0', { 2770 ['OS=="android" and android_full_debug==0', {
2767 # Some configurations are copied from Release_Base to reduce 2771 # Some configurations are copied from Release_Base to reduce
2768 # the binary size. 2772 # the binary size.
2769 'variables': { 2773 'variables': {
2770 'debug_optimize%': 's', 2774 'debug_optimize%': 's',
2771 }, 2775 },
2772 'cflags': [ 2776 'cflags': [
2773 '-fomit-frame-pointer', 2777 '-fomit-frame-pointer',
(...skipping 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after
4599 # settings in target dicts. SYMROOT is a special case, because many other 4603 # settings in target dicts. SYMROOT is a special case, because many other
4600 # Xcode variables depend on it, including variables such as 4604 # Xcode variables depend on it, including variables such as
4601 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4605 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4602 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4606 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4603 # files to appear (when present) in the UI as actual files and not red 4607 # files to appear (when present) in the UI as actual files and not red
4604 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4608 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4605 # and therefore SYMROOT, needs to be set at the project level. 4609 # and therefore SYMROOT, needs to be set at the project level.
4606 'SYMROOT': '<(DEPTH)/xcodebuild', 4610 'SYMROOT': '<(DEPTH)/xcodebuild',
4607 }, 4611 },
4608 } 4612 }
OLDNEW
« no previous file with comments | « no previous file | sandbox/linux/sandbox_linux.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698