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.

37 lines
1.5 KiB

  1. From 32e39b18fb4fd01408898a0ccba751f0033800c7 Mon Sep 17 00:00:00 2001
  2. From: Hauke Mehrtens <hauke@hauke-m.de>
  3. Date: Wed, 22 Jul 2015 23:05:19 +0200
  4. Subject: [PATCH] csdk: libconnectivity_abstraction.so: add missing depending
  5. library
  6. libconnectivity_abstractionso depends on libcoap.so and librt.so when
  7. build as shared lib, which is the case for the Tizen build. This patch
  8. adds these dependencies to the build.
  9. Without this the dynamic loader will not automatically load these
  10. libraries and it could result in unresolved dependencies at runtime.
  11. Change-Id: Ib972be2b766d7fbccac9b246ae6f11e6182af94c
  12. Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
  13. Reviewed-on: https://gerrit.iotivity.org/gerrit/1825
  14. Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
  15. Reviewed-by: Uze Choi <uzchoi@samsung.com>
  16. Tested-by: Uze Choi <uzchoi@samsung.com>
  17. ---
  18. resource/csdk/connectivity/src/SConscript | 5 +++++
  19. 1 file changed, 5 insertions(+)
  20. --- a/resource/csdk/connectivity/src/SConscript
  21. +++ b/resource/csdk/connectivity/src/SConscript
  22. @@ -108,6 +108,11 @@ if 'BLE' in ca_transport:
  23. print "Include path is %s" % env.get('CPPPATH')
  24. print "Files path is %s" % env.get('CA_SRC')
  25. if ca_os in ['android', 'tizen']:
  26. + env.AppendUnique(LIBS = ['coap'])
  27. + if env.get('SECURED') == '1':
  28. + env.AppendUnique(LIBS = ['tinydtls'])
  29. + if ca_os != 'android':
  30. + env.AppendUnique(LIBS = ['rt'])
  31. calib = env.SharedLibrary('connectivity_abstraction', env.get('CA_SRC'))
  32. else:
  33. calib = env.StaticLibrary('connectivity_abstraction', env.get('CA_SRC'))