mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-19 12:22:43 +00:00
Do the prefix check after prefix argument has been processed. (#16950)
This commit is contained in:
parent
8b04b3818f
commit
18649ad666
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user