Skip to content

Missing linkage with libdl #117

@ghisvail

Description

@ghisvail

On building the library, the Debian packaging build system reports a missing linkage with libdl for libclSPARSE.

The following patch fixed the issue:

--- a/src/library/CMakeLists.txt
+++ b/src/library/CMakeLists.txt
@@ -234,7 +234,7 @@
   )

 # PRIVATE linking prevents transitive library linking of the clBLAS libraries
-target_link_libraries( clSPARSE PRIVATE ${OPENCL_LIBRARIES} ) #${clBLAS_LIBRARIES} )
+target_link_libraries( clSPARSE PRIVATE ${OPENCL_LIBRARIES} ${CMAKE_DL_LIBS} ) #${clBLAS_LIBRARIES} )

 # Package that helps me set visibility for function names exported from shared library
 GENERATE_EXPORT_HEADER( clSPARSE )

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions