Browse code

- makefile update for gcc-3.2

Andrei Pelinescu-Onciul authored on 20/08/2002 10:21:16
Showing 1 changed files
... ...
@@ -137,14 +137,15 @@ ifneq (,$(findstring gcc, $(CC_LONGVER)))
137 137
 				 sed -e 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
138 138
 	MKDEP=$(CC) -MM $(DEFS)
139 139
 	#transform gcc version into 2.9x or 3.0
140
-	CC_SHORTVER=$(shell echo $(CC_VER) | cut -d" " -f 2| \
140
+	CC_SHORTVER=$(shell echo "$(CC_VER)" | cut -d" " -f 2| \
141 141
 				 sed -e 's/[^0-9]*-\(.*\)/\1/'| \
142
-				 sed -e 's/2\.9.*/2.9x/' -e 's/3\..\..*/3.0/')
142
+				 sed -e 's/2\.9.*/2.9x/' -e 's/3\..\..*/3.0/' -e \
143
+				 	's/3\../3.0/')
143 144
 endif
144 145
 
145 146
 ifneq (, $(findstring Sun, $(CC_LONGVER)))
146 147
 	CC_NAME=suncc
147
-	CC_SHORTVER=$(shell echo $(CC_LONGVER)|head -1| \
148
+	CC_SHORTVER=$(shell echo "$(CC_LONGVER)"|head -1| \
148 149
 					sed -e 's/.*\([0-9]\.[0-9]\).*/\1/g' )
149 150
 	CC_VER=$(CC) $(CC_SHORTVER)
150 151
 	MKDEP=$(CC) -xM1 $(DEFS)