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

Side by Side Diff: build/common.gypi

Issue 11363104: ASan on Android requires -pie. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 2960 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 '-Wl,--gc-sections', 2971 '-Wl,--gc-sections',
2972 '-Wl,-z,nocopyreloc', 2972 '-Wl,-z,nocopyreloc',
2973 # crtbegin_dynamic.o should be the last item in ldflags. 2973 # crtbegin_dynamic.o should be the last item in ldflags.
2974 '<(android_ndk_lib)/crtbegin_dynamic.o', 2974 '<(android_ndk_lib)/crtbegin_dynamic.o',
2975 ], 2975 ],
2976 'libraries': [ 2976 'libraries': [
2977 # crtend_android.o needs to be the last item in libraries. 2977 # crtend_android.o needs to be the last item in libraries.
2978 # Do not add any libraries after this! 2978 # Do not add any libraries after this!
2979 '<(android_ndk_lib)/crtend_android.o', 2979 '<(android_ndk_lib)/crtend_android.o',
2980 ], 2980 ],
2981 'conditions': [
2982 ['asan==1', {
2983 'cflags': [
2984 '-fPIE',
2985 ],
2986 'ldflags': [
2987 '-pie',
2988 ],
2989 }],
2990 ],
2981 }], 2991 }],
2982 ['_type=="shared_library" or _type=="loadable_module"', { 2992 ['_type=="shared_library" or _type=="loadable_module"', {
2983 'ldflags': [ 2993 'ldflags': [
2984 '-Wl,-shared,-Bsymbolic', 2994 '-Wl,-shared,-Bsymbolic',
2985 # crtbegin_so.o should be the last item in ldflags. 2995 # crtbegin_so.o should be the last item in ldflags.
2986 '<(android_ndk_lib)/crtbegin_so.o', 2996 '<(android_ndk_lib)/crtbegin_so.o',
2987 ], 2997 ],
2988 'libraries': [ 2998 'libraries': [
2989 # crtend_so.o needs to be the last item in libraries. 2999 # crtend_so.o needs to be the last item in libraries.
2990 # Do not add any libraries after this! 3000 # Do not add any libraries after this!
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
3707 # settings in target dicts. SYMROOT is a special case, because many other 3717 # settings in target dicts. SYMROOT is a special case, because many other
3708 # Xcode variables depend on it, including variables such as 3718 # Xcode variables depend on it, including variables such as
3709 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3719 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3710 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3720 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3711 # files to appear (when present) in the UI as actual files and not red 3721 # files to appear (when present) in the UI as actual files and not red
3712 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3722 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3713 # and therefore SYMROOT, needs to be set at the project level. 3723 # and therefore SYMROOT, needs to be set at the project level.
3714 'SYMROOT': '<(DEPTH)/xcodebuild', 3724 'SYMROOT': '<(DEPTH)/xcodebuild',
3715 }, 3725 },
3716 } 3726 }
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