From 571eea50596ec4a98625f71d06941ba945b7a621 Mon Sep 17 00:00:00 2001 From: Sarbojit Sarkar Date: Tue, 8 Jun 2021 09:10:17 +0000 Subject: [PATCH] SWDEV-285459 - fix for rpath vs runpath Change-Id: I5919b7af09f1ee4dbeaf74090d8a84ab430987fb --- bin/hipcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hipcc b/bin/hipcc index 20fc84d3e4..2f290fbe68 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -702,9 +702,9 @@ if ($HIP_PLATFORM eq "amd") { if (not $isWindows and not $compileOnly) { if ($linkType eq 0) { - $toolArgs .= " -L$HIP_LIB_PATH -lamdhip64 -L$ROCM_PATH/lib -lhsa-runtime64 -ldl -lnuma "; + $toolArgs = " -L$HIP_LIB_PATH -lamdhip64 -L$ROCM_PATH/lib -lhsa-runtime64 -ldl -lnuma " . ${toolArgs}; } else { - $toolArgs .= " -Wl,--enable-new-dtags -Wl,--rpath=$HIP_LIB_PATH:$ROCM_PATH/lib -lamdhip64 "; + $toolArgs = " -Wl,--enable-new-dtags -Wl,--rpath=$HIP_LIB_PATH:$ROCM_PATH/lib -lamdhip64 " . ${toolArgs}; } # To support __fp16 and _Float16, explicitly link with compiler-rt $toolArgs .= " -L$HIP_CLANG_PATH/../lib/clang/$HIP_CLANG_VERSION/lib/linux -lclang_rt.builtins-x86_64 "