浏览代码

- distcc fix backported from stable

Andrei Pelinescu-Onciul 20 年之前
父节点
当前提交
3fb732f38e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Makefile.defs

+ 2 - 1
Makefile.defs

@@ -44,6 +44,7 @@
 #  2005-07-06  gcc 4.0 optimizations support (andrei)
 #  2005-07-25  better solaris arch detection (andrei)
 #  2005-09-12  -mallign-double removed (too many problems) (andrei)
+#  2005-10-02  distcc get gcc version hack (andrei)
 
 
 # check if already included/exported
@@ -206,7 +207,7 @@ MKTAGS=ctags -R .
 
 ifneq (,$(findstring gcc, $(CC_LONGVER)))
 	CC_NAME=gcc
-	CC_VER=$(CC) $(shell $(CC) --version|head -n 1|cut -d" " -f 3| \
+	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/' \
 				 	 -e 's/^[^0-9].*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
 	# sun sed is a little brain damaged => this complicated expression