瀏覽代碼

- another distcc related fix: ger proper version even if distcc has some
numeric arguments

Andrei Pelinescu-Onciul 20 年之前
父節點
當前提交
d0da70f3c9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Makefile.defs

+ 2 - 2
Makefile.defs

@@ -207,8 +207,8 @@ MKTAGS=ctags -R .
 
 ifneq (,$(findstring gcc, $(CC_LONGVER)))
 	CC_NAME=gcc
-	CC_VER=$(CC) $(shell $(CC) - --version|head -n 1|cut -d" " -f 3| \
-				 sed -e 's/^.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/' \
+	CC_VER=$(word 1,$(CC)) $(shell $(CC) - --version|head -n 1|cut -d" " -f 3|\
+				 sed -e 's/^.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/'\
 				 	 -e 's/^[^0-9].*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
 	# sun sed is a little brain damaged => this complicated expression
 	MKDEP=$(CC) -MM