Add fortify option 27/175627/3
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 11 Apr 2018 07:24:14 +0000 (16:24 +0900)
committerhj kim <backto.kim@samsung.com>
Mon, 16 Apr 2018 23:51:15 +0000 (23:51 +0000)
Change-Id: Idaf1328011f0673173d2973e3228bb374a13b0d4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/media-server.spec

index c9867cc..b4bc814 100755 (executable)
@@ -86,7 +86,7 @@ export CFLAGS="$CFLAGS -D_USE_SENIOR_MODE -D_USE_RECORDED_CONTENT -D_USE_SUSPEND
 %else
 export CFLAGS="$CFLAGS -D_USE_MULTI_USER -D_USE_META_UPDATE -D_USE_DEVICED_DBUS"
 %endif
-export CFLAGS="$CFLAGS -D_GNU_SOURCE -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
+export CFLAGS="$CFLAGS -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DTIZEN_DEBUG_ENABLE -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
 export CFLAGS+=" -DPATH_LIBDIR=\\\"%{_libdir}\\\""
 rm -rf autom4te.cache
 rm -f aclocal.m4 ltmain.sh