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:
parent
8329338c20
commit
72b2ef06e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user