summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 00:21:50 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 00:21:50 +0000
commit817a23d0bf804a5fe232d56880d8a02815f23994 (patch)
tree2559af2d107e2839b7c05656ff3e62f77d778719 /build
parent7eed731c2dddacd9237f3b838db38c7ff36f5022 (diff)
downloadchromium_src-817a23d0bf804a5fe232d56880d8a02815f23994.zip
chromium_src-817a23d0bf804a5fe232d56880d8a02815f23994.tar.gz
chromium_src-817a23d0bf804a5fe232d56880d8a02815f23994.tar.bz2
Mmm, pie.
BUG=16713 TEST=none Review URL: http://codereview.chromium.org/308010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 1ca523d..2533c25 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -746,6 +746,13 @@
['_mac_bundle', {
'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
}],
+ ['_type=="executable"', {
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [
+ '-Wl,-pie', # Position-independent executable (MH_PIE)
+ ],
+ },
+ }],
['_type=="executable" or _type=="shared_library"', {
'target_conditions': [
['mac_real_dsym == 1', {