From 2ce78f0612b68894c745d5b09c5f825a735436f4 Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Mon, 22 Aug 2022 12:53:17 -0400 Subject: [PATCH] Revert "Change search path to use RPATH" This reverts commit 005a0b6979759c7c1e445d3150e30367810f112b. The change from using RUNPATH to RPATH was not approved formally. Reverting this patch until this gets approved. Change-Id: Ibc1a8f9d5dfa6694adacccfd9e3b0d053660e848 [ROCm/ROCR-Runtime commit: 064796001973567ec861a4bfb9623ff66e45c499] --- projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt b/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt index 4fa2a95740..8d1937cd15 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt +++ b/projects/rocr-runtime/runtime/hsa-runtime/CMakeLists.txt @@ -148,7 +148,7 @@ endif() set ( DRVDEF "${CMAKE_CURRENT_SOURCE_DIR}/hsacore.so.def" ) set ( LNKSCR "hsacore.so.link" ) -set ( HSA_SHARED_LINK_FLAGS "-Wl,-Bdynamic -Wl,-z,noexecstack -Wl,${CMAKE_CURRENT_SOURCE_DIR}/${LNKSCR} -Wl,--version-script=${DRVDEF} -Wl,--disable-new-dtags" ) +set ( HSA_SHARED_LINK_FLAGS "-Wl,-Bdynamic -Wl,-z,noexecstack -Wl,${CMAKE_CURRENT_SOURCE_DIR}/${LNKSCR} -Wl,--version-script=${DRVDEF} -Wl,--enable-new-dtags" ) target_compile_options(${CORE_RUNTIME_TARGET} PRIVATE ${HSA_CXX_FLAGS}) #target_link_options not available prior to CMake 3.13