add missing compile secure option for iotivity library 14/190714/1
authorharish_kumar <harish.191@samsung.com>
Fri, 15 Jun 2018 04:44:39 +0000 (10:14 +0530)
committerAmit KS <amit.s12@samsung.com>
Fri, 5 Oct 2018 03:31:56 +0000 (09:01 +0530)
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/294
(cherry picked from commit ff3d8b68e7ad493ed9f52cc62faab0124409891d)

Change-Id: I13c83d33031ff774c2a66b8e7636e68d779e93b7
Signed-off-by: Amit KS <amit.s12@samsung.com>
build_common/tizen/SConscript

index 4de8577..e013ce0 100644 (file)
@@ -22,7 +22,7 @@ env.AppendUnique(CFLAGS = ['-std=gnu99'])
 env.AppendUnique(CCFLAGS = ['-Wextra', '-fPIC'])
 env.AppendUnique(LIBS = ['dl', 'pthread'])
 
-env.AppendUnique(CCFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE','-fstack-protector-strong','-Wl,-z,relro','-D_FORTIFY_SOURCE=2'])
+env.AppendUnique(CCFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE','-fstack-protector-strong','-Wl,-z,relro','-D_FORTIFY_SOURCE=2','-fPIE,-pie'])
 env.ParseConfig("pkg-config dlog --cflags --libs")
 if env.get('OIC_SUPPORT_TIZEN_TRACE') == 'True':
     env.ParseConfig("pkg-config ttrace --cflags --libs")