Module: sip-router Branch: master Commit: ca492cdd50807cf50072d9a510156860b1139467 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ca492cdd...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Fri May 29 18:41:45 2009 +0200
makefile: fix last commit
- workaround make not escaping a ')'.
---
Makefile.defs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile.defs b/Makefile.defs index 9836790..bb0459a 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -284,10 +284,11 @@ MKTAGS=ctags -R .
ifneq (,$(findstring gcc, $(CC_LONGVER))) CC_NAME=gcc + RPAREN=) CC_VER:=$(word 1,$(CC)) $(shell $(CC) - --version|head -n 1|\ - |sed -e 's/([^)]*)//g' \ + sed -e 's/([^$(RPAREN)]*)//g' \ -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/') # 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/'\ # -e 's/^[^0-9].*([0-9][0-9]*.[0-9][0-9]*).*/\1/')