Allow a user to supply extra CFLAGS via the EXTRA_CFLAGS environment
variable.  This is not a configuration that is supported but is only
aimed to help support testing and troubleshooting when you need to make
changes.

Signed-off-by: Doug Goldstein <[email protected]>
---
CC: Andrew Cooper <[email protected]>
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau MonnĂ© <[email protected]>
---
 xen/Rules.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/Rules.mk b/xen/Rules.mk
index 3cf40754a6..63b559035f 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -75,6 +75,8 @@ ALL_OBJS := $(ALL_OBJS-y)
 CFLAGS-y += -MMD -MF $(@D)/.$(@F).d
 
 CFLAGS += $(CFLAGS-y)
+# allow extra CFLAGS externally via EXTRA_CFLAGS
+CFLAGS += $(EXTRA_CFLAGS)
 
 # Most CFLAGS are safe for assembly files:
 #  -std=gnu{89,99} gets confused by #-prefixed end-of-line comments
-- 
2.13.6


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to