diff options
author | Tim Deegan <tim@xen.org> | 2012-08-02 12:04:31 +0100 |
---|---|---|
committer | Tim Deegan <tim@xen.org> | 2012-08-02 12:04:31 +0100 |
commit | 5c8bff1b86a053432943c565cf69d1cf1d87c2a4 (patch) | |
tree | 09b1bc858e47fb28a61f9ab4e0a21b230b6afa69 | |
parent | c2d8efd5867e091215dd84bbf4f05a9cbd7fbd1a (diff) | |
download | xen-5c8bff1b86a053432943c565cf69d1cf1d87c2a4.tar.gz xen-5c8bff1b86a053432943c565cf69d1cf1d87c2a4.tar.bz2 xen-5c8bff1b86a053432943c565cf69d1cf1d87c2a4.zip |
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 <tim@xen.org>
Acked-by: Keir Fraser <keir@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
-rw-r--r-- | xen/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
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' \ |