[hipcc] Repace --rpath with --rpath-link

- With `--rpath`, app's RUNPATH is set to the temporary library path
  during build. Instead, `--rpath-link` should be used to leave RUNPATH
  untouched. User should set LD_LIBRARY_PATH or system ld.so.conf to
  proper setting.


[ROCm/clr commit: 92f90c3651]
Этот коммит содержится в:
Michael LIAO
2019-04-29 14:17:11 -04:00
родитель fbadd3f6cd
Коммит fb427976d7
+1 -1
Просмотреть файл
@@ -191,7 +191,7 @@ if ($HIP_PLATFORM eq "clang") {
$HIPCXXFLAGS .= " -std=c++11 -isystem $HIP_CLANG_INCLUDE_PATH";
$HIPLDFLAGS .= " -L$HIP_LIB_PATH";
if (not $isWindows) {
$HIPLDFLAGS .= " -Wl,--rpath=$HIP_LIB_PATH";
$HIPLDFLAGS .= " -Wl,--rpath-link=$HIP_LIB_PATH";
$HIPLDFLAGS .= " -lhip_hcc";
} else {
$HIPLDFLAGS .= " -lamdhip64";