X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=build_common%2Ftizen%2FSConscript;h=6b48298312b95883188212a776b7c62f162af2bb;hb=b3a086cdfb6c665f740252da21aee4d42ffc2551;hp=fe06f8f357c0420775aed7c32d42e6cc1ddf5eb0;hpb=6ac4daf1c0a01ee54845041025cb7ec845d2502b;p=platform%2Fupstream%2Fiotivity.git diff --git a/build_common/tizen/SConscript b/build_common/tizen/SConscript index fe06f8f..6b48298 100644 --- a/build_common/tizen/SConscript +++ b/build_common/tizen/SConscript @@ -1,4 +1,3 @@ -# -*- mode: python; python-indent-offset: 4; indent-tabs-mode: nil -*- ## # This script set linux specific flags (GNU GCC) # @@ -15,15 +14,23 @@ if env.get('RELEASE'): env.AppendUnique(CPPDEFINES = ['NDEBUG']) if env.get('LOGGING'): - env.AppendUnique(CPPDEFINES = ['TB_LOG']) + env.AppendUnique(CPPDEFINES = ['-DTB_LOG']) env['CCFLAGS'] = SCons.Util.CLVar(os.environ.get('CFLAGS', "")) env.AppendUnique(CPPDEFINES = ['WITH_POSIX', '__linux__']) env.AppendUnique(CFLAGS = ['-std=gnu99']) env.AppendUnique(CCFLAGS = ['-Wextra', '-fPIC']) +env.AppendUnique(CXXFLAGS = ['-Wextra', '-fPIC']) env.AppendUnique(LIBS = ['dl', 'pthread']) -env.AppendUnique(CCFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE']) -env.ParseConfig("pkg-config dlog --cflags --libs") +# # Add GCC9 exception +env.AppendUnique(CCFLAGS = ['-Wno-error=stringop-truncation', '-Wno-format-truncation', '-Wno-error=address-of-packed-member']) +env.AppendUnique(CXXFLAGS = ['-Wno-error=stringop-truncation', '-Wno-format-truncation', '-Wno-error=address-of-packed-member']) +env.AppendUnique(CCFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE','-fstack-protector-strong','-Wl,-z,relro','-D_FORTIFY_SOURCE=2']) +env.AppendUnique(CXXFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE','-fstack-protector-strong','-Wl,-z,relro','-D_FORTIFY_SOURCE=2']) +env.AppendUnique(LINKFLAGS = ['-Wl,-z,relro']) +env.ParseConfig("pkg-config dlog --cflags --libs") +if env.get('OIC_SUPPORT_TIZEN_TRACE') == 'True': + env.ParseConfig("pkg-config ttrace --cflags --libs") # Set arch flags : It will be handled by Tizen build system.