From cf7eefe88c19481a8ea382207d53d4373b5a4925 Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Mon, 11 Jun 2018 16:08:03 +0200 Subject: Added -D_FORTIFY_SOURCE=2 to CFLAGS Added this option, to match the given ones when building from yocto with bitbake. Also fixed the sample example, and some copy-paste issues on build targets (RELEASE/DEBUG/PROFILING/CCOV). Change-Id: I759305e54d427e6763f32b1a86207fe35add1b3f Signed-off-by: Thierry Bultel --- samples.d/config.cmake.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'samples.d') diff --git a/samples.d/config.cmake.sample b/samples.d/config.cmake.sample index 3ec9201..b065b4a 100644 --- a/samples.d/config.cmake.sample +++ b/samples.d/config.cmake.sample @@ -110,7 +110,7 @@ set (PKG_REQUIRED_LIST #set(DEBUG_COMPILE_OPTIONS # -g # -ggdb -# -Wp,-U_FORTIFY_SOURCE +# -D_FORTIFY_SOURCE=2 # CACHE STRING "Compilation flags for DEBUG build type.") #set(CCOV_COMPILE_OPTIONS # -g @@ -120,6 +120,7 @@ set (PKG_REQUIRED_LIST #set(RELEASE_COMPILE_OPTIONS # -g # -O2 +# -D_FORTIFY_SOURCE=2 # CACHE STRING "Compilation flags for RELEASE build type.") # (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable] -- cgit 1.2.3-korg