From 7f8b80103d3163dd7435b40fbea9eb3949f7c647 Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Mon, 29 Apr 2019 14:17:11 -0400 Subject: [PATCH] [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. --- bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hipcc b/bin/hipcc index 6f020662de..fadc74c137 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -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";