Jelajahi Sumber

- distcc with numeric args version fix backported

Andrei Pelinescu-Onciul 20 tahun lalu
induk
melakukan
a5b678bddf
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      Makefile.defs

+ 2 - 2
Makefile.defs

@@ -198,8 +198,8 @@ MKTAGS=ctags -R .
 
 ifneq (,$(findstring gcc, $(CC_LONGVER)))
 	CC_NAME=gcc
-	CC_VER=$(CC) $(shell $(CC) - --version|head -n 1| \
-				 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|\
+				 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