Commit 9ca415c3 authored by Christopher Covington's avatar Christopher Covington Committed by Pavel Emelyanov

Allow for user CFLAGS

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.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f69fe9aa
...@@ -33,6 +33,8 @@ SH := bash ...@@ -33,6 +33,8 @@ SH := bash
MAKE := make MAKE := make
OBJCOPY := $(CROSS_COMPILE)objcopy OBJCOPY := $(CROSS_COMPILE)objcopy
CFLAGS += $(USERCFLAGS)
# #
# Fetch ARCH from the uname if not yet set # Fetch ARCH from the uname if not yet set
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment