From 5c8bff1b86a053432943c565cf69d1cf1d87c2a4 Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Thu, 2 Aug 2012 12:04:31 +0100 Subject: xen: detect compiler version with '--version' rather than '-v' This allows us to get rid of the 'grep version', which doesn't work with localized compilers. Signed-off-by: Tim Deegan Acked-by: Keir Fraser Committed-by: Tim Deegan --- xen/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xen/Makefile') diff --git a/xen/Makefile b/xen/Makefile index b97a26df21..f6cbb9a583 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -103,7 +103,7 @@ include/xen/compile.h: include/xen/compile.h.in .banner -e 's/@@whoami@@/$(XEN_WHOAMI)/g' \ -e 's/@@domain@@/$(XEN_DOMAIN)/g' \ -e 's/@@hostname@@/$(shell hostname)/g' \ - -e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) -v 2>&1 | grep version | tail -1)!g' \ + -e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) --version 2>&1 | head -1)!g' \ -e 's/@@version@@/$(XEN_VERSION)/g' \ -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ -- cgit v1.2.3