summaryrefslogtreecommitdiff
path: root/scripts/scan-tools.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/scan-tools.sh')
-rw-r--r--scripts/scan-tools.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/scan-tools.sh b/scripts/scan-tools.sh
index 74c4f90c5..f1c01e61a 100644
--- a/scripts/scan-tools.sh
+++ b/scripts/scan-tools.sh
@@ -184,7 +184,11 @@ fi
# always required, but can be provided by host
host_build_bc=0
-if ! which bc >/dev/null 2>&1; then
+if which bc >/dev/null 2>&1; then
+ if ! echo quit|bc -q 2>/dev/null >/dev/null;then
+ host_build_bc=1
+ fi
+else
host_build_bc=1
fi