Commit 1a0439cf authored by Philippe Coval's avatar Philippe Coval Committed by Uze Choi

notification: Reordering libs for linker on examples and tests

Reordering libs by dependencies is solving observed issue on yocto:

  ld: warning: liboc.so, \
  needed by out/yocto/i586/release/libresource_directory.so, not found \
  (try using -rpath or -rpath-link)
  libresource_directory.so: \
  undefined reference to `OC::MessageContainer::representations() const'
  (...)

Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I8622e0efbdad18236cb04fb14f8d01bcef7b8879
Signed-off-by: default avatarPhilippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17563Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent 3ac52ad6
......@@ -46,12 +46,12 @@ notification_sample_env.AppendUnique(CPPPATH = [
])
notification_sample_env.PrependUnique(LIBS = [
'resource_directory',
'oc',
'liboctbstack',
'oc_logger',
'oc',
'connectivity_abstraction',
'libcoap',
'resource_directory'
])
notification_sample_env.AppendUnique(CXXFLAGS = ['-std=c++0x','-frtti'])
......
......@@ -22,11 +22,11 @@ notification_sample_env.AppendUnique(CPPPATH = ['#/resource/csdk/resource-direct
notification_sample_env.AppendUnique(CPPPATH = ['#/resource/csdk/connectivity/api'])
notification_sample_env.PrependUnique(LIBS = [
'resource_directory',
'octbstack',
'oc_logger',
'connectivity_abstraction',
'oc_logger',
'libcoap',
'resource_directory'
])
if target_os not in ['windows', 'winrt']:
......
......@@ -55,7 +55,9 @@ GTest_Main = File(gtest_dir + '/lib/.libs/libgtest_main.a')
notification_test_env.AppendUnique(LIBPATH = [lib_env.get('BUILD_DIR')])
notification_test_env.AppendUnique(LIBS = [
'connectivity_abstraction', 'oc', 'octbstack', 'oc_logger', 'coap', 'resource_directory',
'resource_directory', 'oc',
'octbstack', 'connectivity_abstraction', 'oc_logger',
'coap',
GTest_Main, GTest])
if target_os not in ['windows', 'winrt']:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment