Do the prefix check after prefix argument has been processed. (#16950)

This commit is contained in:
karliss 2020-05-29 06:04:15 +03:00 committed by GitHub
parent 8b04b3818f
commit 18649ad666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,9 +66,6 @@ if [ "`uname`" = Darwin ]; then
[ "$(id -u)" = 0 ] || SUDO=sudo
[ -n "${NOSUDO}" ] && SUDO=
fi
else
[ -n "${PREFIX}" -a "${PREFIX}" != /usr ] && \
CFGARG="${CFGARG} --with-rpath"
fi
[ -z "${PREFIX}" ] && PREFIX="${DEFAULT_PREFIX}"
@ -96,6 +93,10 @@ if [ "${USE_CS5}" = 1 ]; then
CFGARG="${CFGARG} --with-capstone5"
fi
if [ "`uname`" != Darwin -a -n "${PREFIX}" -a "${PREFIX}" != /usr ]; then
CFGARG="${CFGARG} --with-rpath"
fi
ccache --help > /dev/null 2>&1
if [ $? = 0 ]; then
[ -z "${CC}" ] && CC=gcc