[CRIU] [RFC 08/11] Allow for user CFLAGS
Christopher Covington
cov at codeaurora.org
Fri Feb 7 09:04:42 PST 2014
Ideally, a user could set CFLAGS on the command line to contain
compilation options and include and library paths (or maybe set
those last two with CPPFLAGS and LDFLAGS). Unfortunately, setting
CFLAGS on the command line currently short-circuits essential
logic in the makefile and breaks the build. After a first failed
attempt it appears that a monolithic overhaul or "flag day" to
fix this is a substantial undertaking, so for now just provide a
workaround in the form of a USERCFLAGS variable.
---
Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index 8049374..556782a 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,8 @@ SH := bash
MAKE := make
OBJCOPY := $(CROSS_COMPILE)objcopy
+CFLAGS += $(USERCFLAGS)
+
#
# Fetch ARCH from the uname if not yet set
#
--
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by the Linux Foundation.
More information about the CRIU
mailing list