From 4ec698175d1c1908057c9f4e1cd365326bf77512 Mon Sep 17 00:00:00 2001 From: "jyong2.kim" Date: Thu, 16 Jul 2015 17:29:41 +0900 Subject: [PATCH] Fix build error for broker and cache. Change-Id: I29c19515a5b175153d69c95c7e52b2656b7cfd99 Signed-off-by: jyong2.kim Reviewed-on: https://gerrit.iotivity.org/gerrit/1689 Reviewed-by: Hun-je Yeon Reviewed-by: Uze Choi Tested-by: Uze Choi --- service/resource-manipulation/src/resourceBroker/SConscript | 1 + service/resource-manipulation/src/resourceCache/SConscript | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/service/resource-manipulation/src/resourceBroker/SConscript b/service/resource-manipulation/src/resourceBroker/SConscript index 10099b2..1cf3ae6 100755 --- a/service/resource-manipulation/src/resourceBroker/SConscript +++ b/service/resource-manipulation/src/resourceBroker/SConscript @@ -73,6 +73,7 @@ else : resourcebrokersdk = resourcebroker_env.StaticLibrary('ResourceBroker', resourcebroker_src) resourcebroker_env.InstallTarget(resourcebrokersdk, 'libResouceBroker') +resourcebroker_env.UserInstallTargetLib(resourcebrokersdk, 'libResouceBroker') # Go to build sample apps #SConscript('SampleApp/SConscript') diff --git a/service/resource-manipulation/src/resourceCache/SConscript b/service/resource-manipulation/src/resourceCache/SConscript index 4b1eac3..d3b2296 100644 --- a/service/resource-manipulation/src/resourceCache/SConscript +++ b/service/resource-manipulation/src/resourceCache/SConscript @@ -48,7 +48,7 @@ resourcecache_env.AppendUnique(CPPPATH = ['../common/expiryTimer/src']) resourcecache_env.PrependUnique(LIBS = ['service_common', 'ExpiryTimer', 'oc', 'octbstack', 'oc_logger', 'connectivity_abstraction', 'libcoap']) if target_os not in ['windows', 'winrt']: - resourcecache_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0', '-std=c++11']) + resourcecache_env.AppendUnique(CXXFLAGS = ['-O2', '-g', '-Wall', '-fmessage-length=0', '-std=c++0x']) if target_os == 'linux': resourcecache_env.AppendUnique(LIBS = ['pthread']) @@ -65,6 +65,7 @@ resourcecache_src = [ resourcecachesdk = resourcecache_env.StaticLibrary('ResourceCache', resourcecache_src) resourcecache_env.InstallTarget(resourcecachesdk, 'libResouceCache') +resourcecache_env.UserInstallTargetLib(resourcecachesdk, 'libResouceCache') # Go to build sample apps #SConscript('SampleApp/SConscript') -- 2.7.4