From 7eed731c2dddacd9237f3b838db38c7ff36f5022 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Wed, 21 Oct 2009 00:21:38 +0000 Subject: Use -fstack-protector in Mac Debug builds. We used to have this in debug.xcconfig, but it seems to have gotten lost when we migrated to GYP. BUG=16713 (not really, that's for release builds, but close enough) TEST=none Review URL: http://codereview.chromium.org/292036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29591 0039d316-1c4b-4281-b951-d872f2087c98 --- build/common.gypi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/common.gypi b/build/common.gypi index bd11ee4..1ca523d 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -354,7 +354,11 @@ 'xcode_settings': { 'COPY_PHASE_STRIP': 'NO', 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)', - 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ], + 'OTHER_CFLAGS': [ + '-fstack-protector', + '-fstack-protector-all', + '<@(debug_extra_cflags)', + ], }, 'conditions': [ [ 'OS=="win"', { -- cgit v1.1