connectivity: Add linked libs and sort dependencies
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Tue, 28 Feb 2017 13:20:17 +0000 (14:20 +0100)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Mon, 13 Mar 2017 21:12:47 +0000 (21:12 +0000)
csdk: Link to oc as used

Observed issue is when building with yocto (master):
  libresource_directory.so: \
  undefined reference to \
  `OC::MessageContainer::representations() const

Note, Targets supporting RD are aligned to:
resource/csdk/resource-directory/SConscript
( https://gerrit.iotivity.org/gerrit/14059 )
And it would worth to extent platform support in later patches.

Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I930bc6bcbbf052eddb679ffea9eb822300000001
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17655
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/connectivity/test/SConscript

index 5132429..6a0c1f8 100644 (file)
@@ -64,6 +64,8 @@ if catest_env.get('SECURED') == '1':
     catest_env.AppendUnique(LIBS = ['mbedtls', 'mbedx509','mbedcrypto'])
 
 if 'CLIENT' in rd_mode or 'SERVER' in rd_mode:
+    if 'CLIENT' in rd_mode and target_os not in ['arduino', 'darwin', 'ios', 'windows', 'winrt']:
+        catest_env.PrependUnique(LIBS = ['oc', 'oc_logger'])
     catest_env.PrependUnique(LIBS = ['resource_directory'])
 
 if target_os not in ['msys_nt', 'windows']: