Ian Jackson
2008-Sep-11 16:03 UTC
[Xen-devel] [PATCH] Make it easier to provide extra compiler flags
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@eu.citrix.com> 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@lists.xensource.com http://lists.xensource.com/xen-devel