From: Tim Deegan Date: Thu, 2 Aug 2012 11:04:31 +0000 (+0100) Subject: xen: detect compiler version with '--version' rather than '-v' X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8100 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5c8bff1b86a053432943c565cf69d1cf1d87c2a4;p=xen.git 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 --- 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' \