Trying to fix BUILD_NDPI for xcompilation.

* added a CMake warning as well

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2021-06-08 23:39:47 +02:00
parent 55ecf068b3
commit 4d6ea33aa4
2 changed files with 24 additions and 4 deletions

View File

@@ -20,7 +20,12 @@ fi
cd ./libnDPI
DEST_INSTALL="${DEST_INSTALL:-$(realpath ./install)}"
MAKE_PROGRAM="${MAKE_PROGRAM:-make -j4}"
./autogen.sh --prefix="${DEST_INSTALL}" --with-only-libndpi
if [ ! -z "${CROSS_COMPILE_TRIPLET}" ]; then
HOST_ARG="--host=${CROSS_COMPILE_TRIPLET}"
else
HOST_ARG=""
fi
./autogen.sh --prefix="${DEST_INSTALL}" --with-only-libndpi ${HOST_ARG}
${MAKE_PROGRAM} install
rm -f "${LOCKFILE}"