When trying to run test-release.sh on Solaris 11.4 for 9.0.0 rc4, I failed initially
because Solaris lacks chrpath. This patch accounts for that and allowed the run to
continue.
Tested on amd64-pc-solaris2.11 and sparcv9-sun-solaris2.11.
Differential Revision: https://reviews.llvm.org/D67484
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371741
91177308-0d34-0410-b5e6-
96231b3b80d8
fi
}
-if [ "$System" != "Darwin" ]; then
+if [ "$System" != "Darwin" -a "$System" != "SunOS" ]; then
check_program_exists 'chrpath'
+fi
+
+if [ "$System" != "Darwin" ]; then
check_program_exists 'file'
check_program_exists 'objdump'
fi
# Clean RPATH. Libtool adds the build directory to the search path, which is
# not necessary --- and even harmful --- for the binary packages we release.
function clean_RPATH() {
- if [ "$System" = "Darwin" ]; then
+ if [ "$System" = "Darwin" -o "$System" = "SunOS" ]; then
return
fi
local InstallPath="$1"