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: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17563
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
])
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'])
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']:
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']: