Use realpath to force absolute path in sys/install.sh prefix ##build

This commit is contained in:
pancake 2023-06-19 22:29:38 +02:00 committed by pancake
parent b1a8fd3a0b
commit 70bf77114b

View File

@ -47,11 +47,14 @@ for a in $* ; do
esac
done
ABSPREFIX=`realpath ${PREFIX}`
[ -n "${ABSPREFIX}" ] && PREFIX="${ABSPREFIX}"
if [ "${USE_CS4}" = 1 ]; then
CFGARG="${CFGARG} --with-capstone4"
fi
if [ "${OSNAME}" = Linux ] && [ -n "${PREFIX}" ] && [ "${PREFIX}" != /usr ]; then
if [ "${OSNAME}" = Linux -a -n "${PREFIX}" -a "${PREFIX}" != /usr ]; then
CFGARG="${CFGARG} --with-rpath"
fi