From c66b95c798221e2b8928981cf94f2a6ae85bab26 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Wed, 11 Apr 2018 16:29:46 +0900 Subject: [PATCH] Add fortify, stack canary option Change-Id: I52c4da8092619c3d0d165082bb8a9be64766fab0 Signed-off-by: Minje Ahn --- packaging/libmm-fileinfo.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/libmm-fileinfo.spec b/packaging/libmm-fileinfo.spec index cfa95bb..d4db109 100755 --- a/packaging/libmm-fileinfo.spec +++ b/packaging/libmm-fileinfo.spec @@ -47,7 +47,7 @@ cp %{SOURCE1001} . export CFLAGS+=" -Wextra -Wno-array-bounds" export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow" export CFLAGS+=" -Wwrite-strings -Wswitch-default -Werror" -export CFLAGS+=" -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -fgnu89-inline" +export CFLAGS+=" -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -fgnu89-inline -fstack-protector-strong -D_FORTIFY_SOURCE=2" ./autogen.sh %reconfigure \ -- 2.7.4