Link to library libm 30/22130/2
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 9 Aug 2019 14:23:25 +0000 (16:23 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 9 Aug 2019 14:29:53 +0000 (16:29 +0200)
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 <jose.bollo@iot.bzh>
binding/CMakeLists.txt

index 3ed0035..e7cd188 100644 (file)
@@ -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)