From 993b1dee7ecb8cb49bbe440af6f33dd1c1346253 Mon Sep 17 00:00:00 2001 From: Freddy Paul Date: Mon, 17 Oct 2022 14:59:24 -0700 Subject: [PATCH] Remove RPATH/RUNPATH from ROCm libraries :Since all public interface libraries are present in same folder RUNPATH/RPATH is not required in the library itself. Application shall provide the required RPATH/RUNPATH to load all libraries. Change-Id: I1d1ba920bf291eb89bd1f4c0fd0cfd80c7d739bd [ROCm/ROCR-Runtime commit: ac66865385452f63683f204a2a8b3ee459814baa] --- projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt b/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt index 3b8418648d..c482fd03e7 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt +++ b/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt @@ -127,9 +127,6 @@ target_include_directories( ${CORE_RUNTIME_TARGET} ${CMAKE_CURRENT_SOURCE_DIR}/libamdhsacode ${CMAKE_CURRENT_BINARY_DIR}/core/runtime/trap_handler) -## Set RUNPATH - ../../lib covers use of the legacy symlink in /hsa/lib/ -set_property(TARGET ${CORE_RUNTIME_TARGET} PROPERTY INSTALL_RPATH "$ORIGIN;$ORIGIN/../../lib;$ORIGIN/../../lib64;$ORIGIN/../lib64" ) - ## ------------------------- Linux Compiler and Linker options ------------------------- set ( HSA_CXX_FLAGS ${HSA_COMMON_CXX_FLAGS} -fexceptions -fno-rtti -fvisibility=hidden -Wno-error=missing-braces -Wno-error=sign-compare -Wno-sign-compare -Wno-write-strings -Wno-conversion-null -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -Wno-error=comment -Wno-comment -Wno-error=pointer-arith -Wno-pointer-arith -Wno-error=unused-variable -Wno-error=unused-function )