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.

42 lines
1.9 KiB

  1. From d1fb4c055f168e68ffd2d5596eef8d96f6c6cfae Mon Sep 17 00:00:00 2001
  2. From: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
  3. Date: Tue, 21 Jul 2015 22:41:09 +0200
  4. Subject: [PATCH] protocol-plugin: libfanserver_mqtt_plugin.so and
  5. liblightserver_mqtt_plugin.so add missing depending library
  6. libfanserver_mqtt_plugin.so and liblightserver_mqtt_plugin.so are also
  7. depending on liboc.so and libcrypto.so, this patch adds these
  8. dependencies to the build. In addition it puts the dependency to
  9. mosquitto to the beginning of the list. This is needed because
  10. mosquitto is a statically linked lib and it also has unresolved
  11. symbols, but gcc only searches the dynamic libs defined after the
  12. static for unresolved symbols in the static lib.
  13. mosquitto was only build as a static linked library so we can use the
  14. normal LIBS mechanism and it will be statically linked.
  15. Without this the dynamic loader will not automatically load these
  16. libraries and it could result in unresolved dependencies at runtime.
  17. Change-Id: Ia130827d04bd3bb1a8863fc64d0097a076edc751
  18. Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
  19. Reviewed-on: https://gerrit.iotivity.org/gerrit/1798
  20. Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
  21. Reviewed-by: Younghyun Joo <yh_.joo@samsung.com>
  22. Reviewed-by: Uze Choi <uzchoi@samsung.com>
  23. ---
  24. service/protocol-plugin/plugins/SConscript | 3 +--
  25. 1 file changed, 1 insertion(+), 2 deletions(-)
  26. --- a/service/protocol-plugin/plugins/SConscript
  27. +++ b/service/protocol-plugin/plugins/SConscript
  28. @@ -47,8 +47,7 @@ if target_os == 'android':
  29. plugins_env.AppendUnique(CXXFLAGS = ['-frtti', '-fexceptions'])
  30. plugins_env.AppendUnique(LIBS = ['gnustl_shared'])
  31. -plugins_env.AppendUnique(LIBS = [File(env.get('BUILD_DIR') + '/libmosquitto.a'),
  32. - 'mosquitto', 'ssl', 'rt'])
  33. +plugins_env.PrependUnique(LIBS = ['mosquitto', 'ssl', 'crypto', 'rt', 'oc'])
  34. ######################################################################