|
@@ -251,7 +251,8 @@ ifneq (,$(findstring gcc, $(CC_LONGVER)))
|
|
CC_VER=$(word 1,$(CC)) $(shell $(CC) - --version|head -n 1|cut -d" " -f 3|\
|
|
CC_VER=$(word 1,$(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/'\
|
|
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/')
|
|
-e 's/^[^0-9].*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
|
|
- # sun sed is a little brain damaged => this complicated expression
|
|
|
|
|
|
+ # sed with POSIX.1 regex doesn't support |, + or ?
|
|
|
|
+ # (darwin, solaris ...) => this complicated expression
|
|
MKDEP=$(CC) -MM
|
|
MKDEP=$(CC) -MM
|
|
#transform gcc version into 2.9x or 3.0
|
|
#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| \
|