diff options
-rw-r--r-- | DEPS | 2 | ||||
-rw-r--r-- | build/common.gypi | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -43,7 +43,7 @@ deps = { "http://v8.googlecode.com/svn/trunk@3082", "src/native_client": - "http://nativeclient.googlecode.com/svn/trunk/src/native_client@868", + "http://nativeclient.googlecode.com/svn/trunk/src/native_client@885", "src/third_party/skia": "http://skia.googlecode.com/svn/trunk@376", 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', { |