[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Use 'gcc -v 2>&1 | tail -1' to extract gcc version.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1219834022 -3600
# Node ID 6c6bda7f09cde36fa875941d7202e77620fdc687
# Parent  14a9a1629590242713198a043cec22266e4228eb
Use 'gcc -v 2>&1 | tail -1' to extract gcc version.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/Makefile |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 14a9a1629590 -r 6c6bda7f09cd xen/Makefile
--- a/xen/Makefile      Wed Aug 27 10:26:50 2008 +0100
+++ b/xen/Makefile      Wed Aug 27 11:47:02 2008 +0100
@@ -87,7 +87,7 @@ include/xen/compile.h: include/xen/compi
            -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 -i "gcc 
.*version ")!g' \
+           -e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -1)!g' \
            -e 's/@@version@@/$(XEN_VERSION)/g' \
            -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
            -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.