From b3a086cdfb6c665f740252da21aee4d42ffc2551 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Mon, 30 Dec 2019 09:47:44 +0900 Subject: [PATCH] Add the build exception for tizen (gcc9) Change-Id: I1512f3d460cb6bf8cc63bf52efa91a8269d2eeb8 Signed-off-by: DoHyun Pyun --- build_common/tizen/SConscript | 4 ++++ 1 file changed, 4 insertions(+) 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']) -- 2.7.4