diff options
author | Anas Nashif <anas.nashif@intel.com> | 2016-11-28 16:28:49 -0500 |
---|---|---|
committer | Anas Nashif <nashif@linux.intel.com> | 2016-11-30 15:23:52 +0000 |
commit | ce9cb26a2ee159049b9375a8fcf4095ba25a80ff (patch) | |
tree | 64aeb3f73337d44eae98437c3b20dae65f1561bc /Makefile | |
parent | 7fee3fdb13dd0844f79834e2b7127272de4fffea (diff) |
build: add more security related compiler flags
Add the following:
* -Wformat
* -Wformat-security
* -D_FORTIFY_SOURCE=2
Change-Id: I4768713126637f851489d13fc1d803a18986f4c0
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -382,6 +382,9 @@ KBUILD_CPPFLAGS := -DKERNEL -D__ZEPHYR__=1 KBUILD_CFLAGS := -c -g -std=c99 \ -fno-asynchronous-unwind-tables \ -Wall \ + -Wformat \ + -Wformat-security \ + -D_FORTIFY_SOURCE=2 \ -Wno-format-zero-length \ -Wno-main -ffreestanding |