summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2019-11-08 18:44:44 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2019-11-08 18:44:44 +0900
commit1a92aa89862731c3835fffe9a37a4d9306c54c3c (patch)
tree53663f88c21f1b6c5105d7e5e4c1dc526e317622
parent76e4f4fef54f40db0326b0089aebada46635ad40 (diff)
downloadautofill-setting-1a92aa89862731c3835fffe9a37a4d9306c54c3c.tar.gz
autofill-setting-1a92aa89862731c3835fffe9a37a4d9306c54c3c.tar.bz2
autofill-setting-1a92aa89862731c3835fffe9a37a4d9306c54c3c.zip
Apply secure options to compile flags
Change-Id: I06f85368bfd31d954245ce356bc86200dff6b26e Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a662890..f58840f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,8 +39,8 @@ FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fPIE")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -Wall -fPIE")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,relro -fPIE -pie")
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} -Wall -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,relro -fPIE -pie")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -Wall -fPIE")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -Wall -fPIE")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -fPIE")