From f67d8def241f5264ef5942e927d29c4a1d4eb86e Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 9 Aug 2019 16:23:25 +0200 Subject: Link to library libm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- binding/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binding/CMakeLists.txt') 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) -- cgit 1.2.3-korg