Make it easier to provide extra compiler flags
PATCH 1/1 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 <[email protected]>
config/StdGNU.mk +1 -1
@@ -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