diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-08-09 16:23:25 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-08-09 16:29:53 +0200 |
commit | f67d8def241f5264ef5942e927d29c4a1d4eb86e (patch) | |
tree | ad63b8cd29f19ce9efb31d995d4686a5a0825cf2 | |
parent | b6b5e9621306f9a5fa7d65624d40fddae64f47ec (diff) |
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 <jose.bollo@iot.bzh>
-rw-r--r-- | binding/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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) |