瀏覽代碼

- makefile update for gcc-3.2

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

+ 4 - 3
Makefile.defs

@@ -137,14 +137,15 @@ ifneq (,$(findstring gcc, $(CC_LONGVER)))
 				 sed -e 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
 	MKDEP=$(CC) -MM $(DEFS)
 	#transform gcc version into 2.9x or 3.0
-	CC_SHORTVER=$(shell echo $(CC_VER) | cut -d" " -f 2| \
+	CC_SHORTVER=$(shell echo "$(CC_VER)" | cut -d" " -f 2| \
 				 sed -e 's/[^0-9]*-\(.*\)/\1/'| \
-				 sed -e 's/2\.9.*/2.9x/' -e 's/3\..\..*/3.0/')
+				 sed -e 's/2\.9.*/2.9x/' -e 's/3\..\..*/3.0/' -e \
+				 	's/3\../3.0/')
 endif
 
 ifneq (, $(findstring Sun, $(CC_LONGVER)))
 	CC_NAME=suncc
-	CC_SHORTVER=$(shell echo $(CC_LONGVER)|head -1| \
+	CC_SHORTVER=$(shell echo "$(CC_LONGVER)"|head -1| \
 					sed -e 's/.*\([0-9]\.[0-9]\).*/\1/g' )
 	CC_VER=$(CC) $(CC_SHORTVER)
 	MKDEP=$(CC) -xM1 $(DEFS)