From 16b705d91235802ce4d906ce80d8bc4b03b862d9 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Fri, 23 Dec 2016 11:49:00 +0530 Subject: [PATCH] hipcc: link to hip runtime using absolute path Change-Id: I714b3e9da0bc1d49665b079d9c4cec1c1a2efa80 --- hipamd/bin/hipcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hipamd/bin/hipcc b/hipamd/bin/hipcc index 7d2675d0ba..e85e803888 100755 --- a/hipamd/bin/hipcc +++ b/hipamd/bin/hipcc @@ -339,9 +339,9 @@ if ($setStdLib eq 0 and $HIP_PLATFORM eq 'hcc') if ($needHipHcc) { if ($linkType eq 0) { - substr($HIPLDFLAGS,0,0) = " -L$HIP_PATH/lib -lhip_hcc_static -lhip_device " ; + substr($HIPLDFLAGS,0,0) = " $HIP_PATH/lib/libhip_hcc_static.a $HIP_PATH/lib/libhip_device.a " ; } else { - substr($HIPLDFLAGS,0,0) = " -L$HIP_PATH/lib -Wl,--rpath=$HIP_PATH/lib -lhip_hcc -lhip_device "; + substr($HIPLDFLAGS,0,0) = " -Wl,--rpath=$HIP_PATH/lib $HIP_PATH/lib/libhip_hcc.so $HIP_PATH/lib/libhip_device.a "; } }