aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-06-26 13:11:21 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-07-16 22:06:31 +0200
commit967381a5990c7b637dffddf80d90104315a6b123 (patch)
tree0375f5421efc319513aabff79b8dd55c112c01a2 /scripts
parentd1075600496643064ac508993219952a7ecb345a (diff)
`get-and-build-libndpi.sh` uses GMake MAKEFLAGS for sub-make (required for e.g. jobserver)
* fixed invalid CMake `test -r ...` Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get-and-build-libndpi.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/get-and-build-libndpi.sh b/scripts/get-and-build-libndpi.sh
index ae88cd1d1..25f1916cc 100755
--- a/scripts/get-and-build-libndpi.sh
+++ b/scripts/get-and-build-libndpi.sh
@@ -26,6 +26,10 @@ if [ ! -z "${CC}" ]; then
HOST_TRIPLET="$(${CC} ${CFLAGS} -dumpmachine)"
fi
+if [ ! -z "${MAKEFLAGS}" ]; then
+ MAKEFLAGS="-${MAKEFLAGS}"
+fi
+
cat <<EOF
------ environment variables ------
HOST_TRIPLET=${HOST_TRIPLET}
@@ -38,6 +42,7 @@ CFLAGS=${CFLAGS:-}
LDFLAGS=${LDFLAGS:-}
ADDITIONAL_ARGS=${ADDITIONAL_ARGS:-}
MAKE_PROGRAM=${MAKE_PROGRAM:-}
+MAKEFLAGS=${MAKEFLAGS}
DEST_INSTALL=${DEST_INSTALL:-}
-----------------------------------
EOF
@@ -84,6 +89,6 @@ HOST_ARG="--host=${HOST_TRIPLET}"
./autogen.sh --enable-option-checking=fatal \
--prefix="/" \
--with-only-libndpi ${HOST_ARG} ${ADDITIONAL_ARGS}
-${MAKE_PROGRAM} install DESTDIR="${DEST_INSTALL}"
+${MAKE_PROGRAM} ${MAKEFLAGS} install DESTDIR="${DEST_INSTALL}"
rm -f "${LOCKFILE}"