summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2018-04-11 07:20:29 (GMT)
committerhj kim <backto.kim@samsung.com>2018-05-11 00:40:34 (GMT)
commit24da53c234808e06b5a5c29bcb5e63bffa93d30a (patch)
tree971da377387f0f120e6ae8432f219c6d57fcdab6
parente06ba3fa1d94ca70d374477ad9ace2bcc7c9dc6e (diff)
downloadlibmedia-thumbnail-24da53c234808e06b5a5c29bcb5e63bffa93d30a.zip
libmedia-thumbnail-24da53c234808e06b5a5c29bcb5e63bffa93d30a.tar.gz
libmedia-thumbnail-24da53c234808e06b5a5c29bcb5e63bffa93d30a.tar.bz2
Add fortify optionrefs/changes/26/175626/2
Change-Id: Iace5c8744c621b525947b6371169ba26fa1fe81b Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
-rwxr-xr-xCMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c5963a5..81ab873 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,7 +40,7 @@ FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-deprecated-declarations")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-deprecated-declarations -D_FORTIFY_SOURCE=2")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC")