Seems moonlight-embedded needs to use this patch
--- a/libgamestream/CMakeLists.txt 2017-09-07 20:15:39.000000000 +0200
+++ b/libgamestream/CMakeLists.txt 2017-09-16 09:11:24.090887894 +0200
@@ -27,7 +27,7 @@ set_target_properties(moonlight-common P
target_include_directories(gamestream PRIVATE ../third_party/moonlight-common-c/src ../third_party/h264bitstream ${AVAHI_INCLUDE_DIRS} ${LIBUUID_INCLUDE_DIRS})
target_include_directories(moonlight-common PRIVATE ../third_party/moonlight-common-c/reedsolomon ${ENET_INCLUDE_DIRS})
target_link_libraries(gamestream ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES} ${EXPAT_LIBRARIES} ${AVAHI_LIBRARIES} ${LIBUUID_LIBRARIES})
-target_link_libraries(moonlight-common ${ENET_LIBRARIES})
+target_link_libraries(moonlight-common ${ENET_LIBRARIES} ${OPENSSL_LIBRARIES})
target_link_libraries(gamestream ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})
and PKG_DEPENDS_TARGET for openssl then libmoonlight-common.so has dependencies for required ssl and crypto library
LibreELEC:~/.kodi/addons/script.moonlight # ldd lib/libmoonlight-common.so
linux-vdso.so.1 (0x00007ffea8b3d000)
libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f6e489e6000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f6e4864e000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f6e4844a000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007f6e48c5a000)
and python is happy loading library
Python 2.7.13 (default, Sep 15 2017, 21:26:44)
[GCC 6.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> ctypes.cdll.LoadLibrary("lib/libmoonlight-common.so")
<CDLL 'lib/libmoonlight-common.so', handle 1eff390 at 7fc2fea65c50>
>>>
I bet addon will now work as expected. I assume one kodi thread crashed because of missing symbol(s).