From: DoHyun Pyun Date: Mon, 30 Dec 2019 00:47:44 +0000 (+0900) Subject: Add the build exception for tizen (gcc9) X-Git-Tag: accepted/tizen/unified/20191230.120915~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F221164%2F2;p=platform%2Fupstream%2Fiotivity.git Add the build exception for tizen (gcc9) Change-Id: I1512f3d460cb6bf8cc63bf52efa91a8269d2eeb8 Signed-off-by: DoHyun Pyun --- diff --git a/build_common/tizen/SConscript b/build_common/tizen/SConscript index 44a1c13..6b48298 100644 --- a/build_common/tizen/SConscript +++ b/build_common/tizen/SConscript @@ -23,6 +23,10 @@ env.AppendUnique(CCFLAGS = ['-Wextra', '-fPIC']) env.AppendUnique(CXXFLAGS = ['-Wextra', '-fPIC']) env.AppendUnique(LIBS = ['dl', 'pthread']) +# # 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'])