From 83409e5b79ab224372dd8486249c668b2998a0a4 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 11 Sep 2022 12:48:33 +0200 Subject: Use CMake XCompile and collect host-triplet from ${CC}. Signed-off-by: Toni Uhlig --- scripts/get-and-build-libndpi.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts/get-and-build-libndpi.sh') diff --git a/scripts/get-and-build-libndpi.sh b/scripts/get-and-build-libndpi.sh index 518ae820a..75158b43c 100755 --- a/scripts/get-and-build-libndpi.sh +++ b/scripts/get-and-build-libndpi.sh @@ -10,8 +10,13 @@ flock -x -n 42 || { exit 1; } +if [ ! -z "${CC}" ]; then + HOST_TRIPLET="$(${CC} ${CFLAGS} -dumpmachine)" +fi + cat <