Skip to contentSkip to conversation

Make it easier to provide extra compiler flags

PATCH New Ian Jackson 1 participant 1 message Sep 11, 2008

lore
Share & tools
lore
#0 lore raw

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.

config/StdGNU.mk +1 -1
diff -r a5cc38391afb config/StdGNU.mk
@@ -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