From 2155505dcdde654b0d11846da6bcab84ea638560 Mon Sep 17 00:00:00 2001 From: Phil Turnbull Date: Mon, 17 Jul 2017 13:17:43 -0700 Subject: [PATCH] Enabled Fortify for libruntime.a There is currently no code in libruntime.a that Fortify can protect so this doesn't actually change the generated assembly. However, we may add code in the future that Fortify can protect. clang defines `_FORTIFY_SOURCE` by default so we need to undefine then redefine it to avoid build errors. --- project.gyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.gyp b/project.gyp index 951e3f4f..9bee27cc 100644 --- a/project.gyp +++ b/project.gyp @@ -102,7 +102,7 @@ 'externals/utf8proc/utf8proc.c', ], 'cflags_c': [ - '-std=c99' + '-std=c99', '-U_FORTIFY_SOURCE', '-D_FORTIFY_SOURCE=1' ], 'ldflags': [ '-g',