From: Ian Jackson Subject: [PATCH] Make it easier to provide extra compiler flags Date: Thu, 11 Sep 2008 17:03:18 +0100 Message-ID: <18633.16710.884920.833492@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 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