Browse code

- distcc fix backported from stable

Andrei Pelinescu-Onciul authored on 02/11/2005 12:28:56
Showing 1 changed files
... ...
@@ -44,6 +44,7 @@
44 44
 #  2005-07-06  gcc 4.0 optimizations support (andrei)
45 45
 #  2005-07-25  better solaris arch detection (andrei)
46 46
 #  2005-09-12  -mallign-double removed (too many problems) (andrei)
47
+#  2005-10-02  distcc get gcc version hack (andrei)
47 48
 
48 49
 
49 50
 # check if already included/exported
... ...
@@ -206,7 +207,7 @@ MKTAGS=ctags -R .
206 207
 
207 208
 ifneq (,$(findstring gcc, $(CC_LONGVER)))
208 209
 	CC_NAME=gcc
209
-	CC_VER=$(CC) $(shell $(CC) --version|head -n 1|cut -d" " -f 3| \
210
+	CC_VER=$(CC) $(shell $(CC) - --version|head -n 1|cut -d" " -f 3| \
210 211
 				 sed -e 's/^.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/' \
211 212
 				 	 -e 's/^[^0-9].*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
212 213
 	# sun sed is a little brain damaged => this complicated expression