Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
hardware
libxrt
0004-xrt_coreutil-Add-dl-to-INTERFACE_LINK_LIBR...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-xrt_coreutil-Add-dl-to-INTERFACE_LINK_LIBRARIES-in-C.patch of Package libxrt
From 858b37f531fac6e2ede671490c22481a900150e7 Mon Sep 17 00:00:00 2001 From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com> Date: Wed, 1 Apr 2020 10:52:27 +0000 Subject: [PATCH 4/5] xrt_coreutil: Add dl to INTERFACE_LINK_LIBRARIES in CMakeLists.txt xrt_coreutil uses dlopen/dlsym and friends in inline interface functions, so it is worth to notify xrt_coreutil users to link with libdl --- src/runtime_src/core/common/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime_src/core/common/CMakeLists.txt b/src/runtime_src/core/common/CMakeLists.txt index 60a1fde3..656ac576 100644 --- a/src/runtime_src/core/common/CMakeLists.txt +++ b/src/runtime_src/core/common/CMakeLists.txt @@ -41,7 +41,8 @@ target_link_libraries(xrt_coreutil ) if (NOT WIN32) -target_link_libraries(xrt_coreutil uuid) +set_target_properties(xrt_coreutil PROPERTIES INTERFACE_LINK_LIBRARIES dl) +target_link_libraries(xrt_coreutil uuid pthread) install(TARGETS xrt_coreutil LIBRARY DESTINATION ${XRT_INSTALL_DIR}/lib) else() -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor