From: José Bollo Date: Fri, 9 Aug 2019 14:23:25 +0000 (+0200) Subject: Link to library libm X-Git-Tag: 8.99.1~3 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=f67d8def241f5264ef5942e927d29c4a1d4eb86e;p=apps%2Fagl-service-bluetooth-pbap.git Link to library libm The binding used lrint since a long time but wasn't linked against libm. It implied that loading of the binding by the binder was failing because the symbol "lrint" wasn't resolved. This change add an explicit link to libm. Bug-AGL: SPEC-2742 Change-Id: I4bfb78c0e5eca2fbb330a81b69fc1794642b7fff Signed-off-by: José Bollo --- diff --git a/binding/CMakeLists.txt b/binding/CMakeLists.txt index 3ed0035..e7cd188 100644 --- a/binding/CMakeLists.txt +++ b/binding/CMakeLists.txt @@ -21,7 +21,7 @@ PROJECT_TARGET_ADD(bluetooth-pbap-binding) # Define project Targets - add_library(bluetooth-pbap-binding MODULE + add_library(${TARGET_NAME} MODULE bluetooth-pbap-binding.c bluetooth-vcard-parser.c gdbus/freedesktop_dbus_properties_interface.c @@ -39,6 +39,6 @@ PROJECT_TARGET_ADD(bluetooth-pbap-binding) ) # Library dependencies (include updates automatically) - TARGET_LINK_LIBRARIES(${TARGET_NAME} ${link_libraries}) + TARGET_LINK_LIBRARIES(${TARGET_NAME} ${link_libraries} m) include_directories(gdbus)