From 14ed20e0cc29b85bba57e1e6660b428709fbf253 Mon Sep 17 00:00:00 2001 From: Ranjith Ramakrishnan Date: Tue, 11 Jun 2024 20:40:39 -0700 Subject: [PATCH] Update elf library search path with lib64 path as well The elf libraries are installed in /usr/lib64 in RHEL. Removed invalid paths Change-Id: I8c2b5525c1e3b62a2bd4e31a442d9931005c2f30 Signed-off-by: Chris Freehill --- runtime/hsa-runtime/cmake_modules/FindLibElf.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/hsa-runtime/cmake_modules/FindLibElf.cmake b/runtime/hsa-runtime/cmake_modules/FindLibElf.cmake index 19b50eca3e..aeeabe6519 100644 --- a/runtime/hsa-runtime/cmake_modules/FindLibElf.cmake +++ b/runtime/hsa-runtime/cmake_modules/FindLibElf.cmake @@ -27,8 +27,6 @@ find_path (LIBELF_INCLUDE_DIRS /usr/local/include/libelf /opt/local/include /opt/local/include/libelf - /sw/include - /sw/include/libelf ENV CPATH) find_library (LIBELF_LIBRARIES @@ -36,9 +34,11 @@ find_library (LIBELF_LIBRARIES elf PATHS /usr/lib + /usr/lib64 /usr/local/lib + /usr/local/lib64 /opt/local/lib - /sw/lib + /opt/local/lib64 ENV LIBRARY_PATH ENV LD_LIBRARY_PATH)