diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-08-09 11:51:05 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:48 +0200 |
commit | 915a564fd2be335f589264ecabc495109a15fe23 (patch) | |
tree | 33bd1a8788faf7d148ccbadad01b3949098e3f4b /samples.d/config.cmake.sample | |
parent | 20522393fee121c684fae3b03c5e8dafd4e820b6 (diff) |
Change default compilation options.
This changes the default build type to RELEASE as it would
be built using Yocto. Debug build should be activated if needed
temporary as the other type: coverage and profiling.
Doing this you are able to detect compilation error that would happens
when building with Yocto and if you need to debug your program you only
need to recompile changing temporary the build type to DEBUG.
Bugs-AGL: SPEC-1644
Change-Id: I1823509a1a48415d3d440dd84d1e43ef48736ebe
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'samples.d/config.cmake.sample')
-rw-r--r-- | samples.d/config.cmake.sample | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/samples.d/config.cmake.sample b/samples.d/config.cmake.sample index b7e60c6..999208a 100644 --- a/samples.d/config.cmake.sample +++ b/samples.d/config.cmake.sample @@ -109,17 +109,24 @@ set (PKG_REQUIRED_LIST #set(DEBUG_COMPILE_OPTIONS # -g # -ggdb -# -Og -# -D_FORTIFY_SOURCE=2 # CACHE STRING "Compilation flags for DEBUG build type.") #set(CCOV_COMPILE_OPTIONS # -g # --coverage # CACHE STRING "Compilation flags for CCOV build type.") #set(RELEASE_COMPILE_OPTIONS -# -g # -O2 +# -pipe # -D_FORTIFY_SOURCE=2 +# -fstack-protector-strong +# -Wformat -Wformat-security +# -Werror=format-security +# -feliminate-unused-debug-types +# -Wl,-O1 +# -Wl,--hash-style=gnu +# -Wl,--as-needed +# -fstack-protector-strong +# -Wl,-z,relro,-z,now # CACHE STRING "Compilation flags for RELEASE build type.") # Location for config.xml.in template file. |