You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.7 KiB

  1. From 2993af980993ebb70b686b1a521d98d26e85cfc2 Mon Sep 17 00:00:00 2001
  2. From: Hauke Mehrtens <hauke@hauke-m.de>
  3. Date: Tue, 21 Jul 2015 20:55:50 +0200
  4. Subject: [PATCH] resource-manipulation: libserver_builder.so add missing
  5. depending library
  6. libserver_builder.so is also depending on liboc.so and
  7. librcs_common.so, this patch adds these dependencies to the build.
  8. liboctbstack.so is only needed when LOGGING=true is set. Without
  9. liboctbstack.so libserver_builder.so misses the dependencies to the
  10. OCLog and OCLogv symbols.
  11. Add LIBPATH to make sure the libs will be found, this fixes a problem
  12. in some jenkins tests.
  13. pthread is added two times, once should be enough.
  14. Without this the dynamic loader will not automatically load these
  15. libraries and it could result in unresolved dependencies at runtime.
  16. Change-Id: I6af126eb4af975b7231d01df922885c7dec5fc56
  17. Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
  18. Reviewed-on: https://gerrit.iotivity.org/gerrit/1799
  19. Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
  20. Reviewed-by: Uze Choi <uzchoi@samsung.com>
  21. ---
  22. .../src/serverBuilder/SConscript | 11 ++++++-----
  23. 1 file changed, 6 insertions(+), 5 deletions(-)
  24. --- a/service/resource-encapsulation/src/serverBuilder/SConscript
  25. +++ b/service/resource-encapsulation/src/serverBuilder/SConscript
  26. @@ -47,6 +47,8 @@ server_builder_env.AppendUnique(CPPPATH
  27. server_builder_env.AppendUnique(CPPPATH = [env.get('SRC_DIR')+'/extlibs', 'include'])
  28. +server_builder_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
  29. +
  30. if target_os not in ['windows', 'winrt']:
  31. server_builder_env.AppendUnique(CXXFLAGS = ['-std=c++0x', '-Wall'])
  32. if target_os != 'android':
  33. @@ -56,7 +58,10 @@ if target_os == 'android':
  34. server_builder_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
  35. server_builder_env.PrependUnique(LIBS = ['gnustl_shared', 'compatibility', 'log'])
  36. -server_builder_env.AppendUnique(LIBS = ['dl'])
  37. +server_builder_env.AppendUnique(LIBS = ['dl', 'oc', 'rcs_common'])
  38. +
  39. +if env.get('LOGGING'):
  40. + server_builder_env.AppendUnique(LIBS = ['octbstack'])
  41. if not release:
  42. server_builder_env.AppendUnique(CXXFLAGS = ['--coverage'])
  43. @@ -77,7 +82,6 @@ server_builder_env.InstallTarget([server
  44. ######################################################################
  45. server_builder_test_env = server_builder_env.Clone();
  46. -server_builder_test_env.AppendUnique(LIBPATH = [env.get('BUILD_DIR')])
  47. server_builder_test_env.AppendUnique(CPPPATH = [
  48. env.get('SRC_DIR')+'/extlibs/hippomocks-master',
  49. gtest_dir + '/include',
  50. @@ -89,8 +93,6 @@ gtest_main = File(gtest_dir + '/lib/.lib
  51. server_builder_test_env.PrependUnique(LIBS = [
  52. 'rcs_server',
  53. - 'rcs_common',
  54. - 'oc',
  55. 'octbstack',
  56. 'oc_logger',
  57. 'connectivity_abstraction',