WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] defer error generation for too old gcc

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] defer error generation for too old gcc
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Thu, 22 Mar 2007 14:10:06 +0000
Delivery-date: Thu, 22 Mar 2007 07:08:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
In order to allow building as non-root with a non-default CC (which
root may not have access to through its $PATH), defer the generation
of an error until CC is actually needed.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: 2007-03-19/tools/Rules.mk
===================================================================
--- 2007-03-19.orig/tools/Rules.mk      2007-03-19 13:26:13.000000000 +0100
+++ 2007-03-19/tools/Rules.mk   2007-03-22 10:24:53.000000000 +0100
@@ -25,7 +25,8 @@ CFLAGS += $(CFLAGS-y)
 
 # Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
 ifeq ($(CONFIG_X86)$(call cc-ver,$(CC),0x030400),yn)
-$(error Xen tools require at least gcc-3.4)
+override CC=echo "Xen requires at least gcc-3.4" >&2; exit 1;
+cc-option := n
 endif
 
 %.opic: %.c
Index: 2007-03-19/xen/arch/x86/Rules.mk
===================================================================
--- 2007-03-19.orig/xen/arch/x86/Rules.mk       2007-03-19 10:22:14.000000000 
+0100
+++ 2007-03-19/xen/arch/x86/Rules.mk    2007-03-22 10:24:29.000000000 +0100
@@ -60,5 +60,6 @@ HDRS += $(wildcard $(BASEDIR)/include/as
 
 # Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
 ifneq ($(call cc-ver,$(CC),0x030400),y)
-$(error Xen requires at least gcc-3.4)
+override CC=echo "Xen requires at least gcc-3.4" >&2; exit 1;
+cc-option := n
 endif



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] defer error generation for too old gcc, Jan Beulich <=