From 9aa24123271b5a95b5c44e274cced69f58c05bf5 Mon Sep 17 00:00:00 2001 From: coderhyme Date: Tue, 6 Oct 2015 04:24:35 -0700 Subject: [PATCH] Fix oversized lib size of rcs_client of resource-encapsulation. Caused by a wrong compile flag. -g is an option for debug mode, it should be excluded for release. Change-Id: I62d0910b27ac243f4d9b7f560164f0553968120c Signed-off-by: coderhyme Reviewed-on: https://gerrit.iotivity.org/gerrit/3617 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi (cherry picked from commit 803d90cbc721dc2568b1c45be3eba932577776fa) Reviewed-on: https://gerrit.iotivity.org/gerrit/3673 --- service/resource-encapsulation/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/resource-encapsulation/SConscript b/service/resource-encapsulation/SConscript index b600739..d82b5f5 100644 --- a/service/resource-encapsulation/SConscript +++ b/service/resource-encapsulation/SConscript @@ -62,7 +62,7 @@ resourceClient_env.AppendUnique(CPPPATH = [ resourceClient_env.PrependUnique(LIBS = ['oc', 'rcs_common', 'octbstack','oc_logger']) if target_os not in ['windows', 'winrt']: - resourceClient_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0', '-std=c++0x']) + resourceClient_env.AppendUnique(CXXFLAGS = ['-Wall', '-std=c++0x']) if target_os == 'linux': resourceClient_env.AppendUnique(LIBS = ['pthread']) -- 2.7.4