Only catch the line from the compiler output where 'version' is a word

This allows to build the kernel with gcc 4.9.1 from ports
This commit is contained in:
Baptiste Daroussin 2014-10-09 12:35:17 +00:00
parent 8329338c20
commit 72b2ef06e2

View File

@ -89,7 +89,7 @@ fi
touch version
v=`cat version` u=${USER:-root} d=`pwd` h=${HOSTNAME:-`hostname`} t=`date`
i=`${MAKE:-make} -V KERN_IDENT`
compiler_v=$($(${MAKE:-make} -V CC) -v 2>&1 | grep 'version')
compiler_v=$($(${MAKE:-make} -V CC) -v 2>&1 | grep -w 'version')
for dir in /usr/bin /usr/local/bin; do
if [ ! -z "${svnversion}" ] ; then