From 0a54160a96e196f825077ded624cbedc84199484 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 1 May 2014 19:29:46 +0000 Subject: gyp rules for ubsan BUG=skia:2481 R=bungeman@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/258393004 git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@14511 2bbb7eff-a529-9590-31e7-b0007b416f81 --- common_conditions.gypi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common_conditions.gypi b/common_conditions.gypi index 39ee953..817c4a1 100644 --- a/common_conditions.gypi +++ b/common_conditions.gypi @@ -413,6 +413,16 @@ }], ], }], + [ 'skia_sanitizer == "undefined"', { + 'cflags': [ '-fPIC' ], + 'cflags_cc!': ['-fno-rtti'], + 'target_conditions': [ + [ '_type == "executable"', { + 'cflags': [ '-fPIE' ], + 'ldflags': [ '-pie' ], + }], + ], + }], ], }], [ 'skia_clang_build', { -- cgit v1.2.3