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] Make it easier to provide extra compiler flags

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Make it easier to provide extra compiler flags
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Thu, 11 Sep 2008 17:03:18 +0100
Delivery-date: Thu, 11 Sep 2008 09:03:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This makes StdGNU.mk reference an undefined make variable
CMDLINE_CFLAGS which can be set by the build environment to provide
additional compiler options.  This makes building for special
purposes, etc., somewhat simpler.

Ian.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

diff -r a5cc38391afb config/StdGNU.mk
--- a/config/StdGNU.mk  Thu Sep 11 16:51:13 2008 +0100
+++ b/config/StdGNU.mk  Thu Sep 11 17:02:02 2008 +0100
@@ -44,7 +44,7 @@ SHLIB_CFLAGS = -shared
 SHLIB_CFLAGS = -shared
 
 ifneq ($(debug),y)
-CFLAGS += -O2 -fomit-frame-pointer
+CFLAGS += -O2 -fomit-frame-pointer $(CMDLINE_CFLAGS)
 else
 # Less than -O1 produces bad code and large stack frames
 CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Make it easier to provide extra compiler flags, Ian Jackson <=