From 4fbec4e77403558f8c992445d3231d60f0aa74aa Mon Sep 17 00:00:00 2001 From: Stella Laurenzo Date: Tue, 12 Mar 2024 13:29:02 -0700 Subject: [PATCH] Link CMAKE_DL_LIBS. Was failing to link on AlmaLinux8. Change-Id: Id7df245f1063c2bebd0f07efc352f1b9017eda0e Signed-off-by: Stella Laurenzo Signed-off-by: Kent Russell [ROCm/ROCR-Runtime commit: 7c10e1e4f5f54f19eb88038b853c9f255e560404] --- projects/rocr-runtime/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/CMakeLists.txt b/projects/rocr-runtime/CMakeLists.txt index 1263efbcca..1db2b27601 100644 --- a/projects/rocr-runtime/CMakeLists.txt +++ b/projects/rocr-runtime/CMakeLists.txt @@ -176,7 +176,7 @@ include_directories(${DRM_AMDGPU_INCLUDE_DIRS}) include_directories(${DRM_INCLUDE_DIRS}) target_link_libraries ( ${HSAKMT_TARGET} - PRIVATE ${DRM_LDFLAGS} ${DRM_AMDGPU_LDFLAGS} pthread rt c numa + PRIVATE ${DRM_LDFLAGS} ${DRM_AMDGPU_LDFLAGS} pthread rt c numa ${CMAKE_DL_LIBS} ) target_compile_options(${HSAKMT_TARGET} PRIVATE ${DRM_CFLAGS} ${HSAKMT_C_FLAGS})