From 064796001973567ec861a4bfb9623ff66e45c499 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 c904cc58562350560b1d98cbda44f73a078e7e7f. The change from using RUNPATH to RPATH was not approved formally. Reverting this patch until this gets approved. Change-Id: Ibc1a8f9d5dfa6694adacccfd9e3b0d053660e848 --- runtime/hsa-runtime/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/CMakeLists.txt b/runtime/hsa-runtime/CMakeLists.txt index 4fa2a95740..8d1937cd15 100644 --- a/runtime/hsa-runtime/CMakeLists.txt +++ b/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