--- tools/ccopts.sh.orig 2016-11-28 21:51:58.000000000 -0600 +++ tools/ccopts.sh 2017-01-16 20:55:38.000000000 -0600 @@ -385,7 +385,7 @@ # worked since at least 2.7.2 although it wasn't actually documented until # the first 3.x releases). -GCC_VER="$(gcc -dumpversion | tr -d '.' | cut -c 1-2)" +GCC_VER="$($CC -dumpversion | tr -d '.' | cut -c 1-2)" # Try and determine the CPU type. This is made more complex by a pile of # *BSE's which, along with antideluvian tools like an as that doesn't