diff --git a/build.sh b/build.sh index 30e7df7de42..335294c241a 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash # Check for gcc version according to # https://unix.stackexchange.com/questions/285924/how-to-compare-a-programs-version-in-a-shell-script -currentgccver="$(gcc -dumpversion)" +currentgccver="$($GCC_HOST_COMPILER_PATH -dumpversion)" requiredgccver="5.0.0" OPTFLAG=""