Fix build in BSD, there is no RPATH in there ##build

This commit is contained in:
pancake 2020-12-18 16:36:22 +01:00 committed by pancake
parent 64e36a85af
commit b2be57f9f7
1 changed files with 2 additions and 2 deletions

View File

@ -95,11 +95,11 @@ if [ "${USE_CS5}" = 1 ]; then
CFGARG="${CFGARG} --with-capstone5"
fi
if [ "${OSNAME}" != Darwin ] && [ -n "${PREFIX}" ] && [ "${PREFIX}" != /usr ]; then
if [ "${OSNAME}" = Linux ] && [ -n "${PREFIX}" ] && [ "${PREFIX}" != /usr ]; then
CFGARG="${CFGARG} --with-rpath"
fi
ccache --help > /dev/null
ccache --help > /dev/null 2>&1
if [ $? = 0 ]; then
[ -z "${CC}" ] && CC=gcc
CC="ccache ${CC}"