Customizing CFLAGS in Makefile.config

Hi,

attached you'll find a small patch, which lets one override the CFLAGS
defined in Makefile.config. The patch was made against the 0.3.4 release.

Regards
Marcus
--- Makefile.config.orig        Sun May 13 04:39:01 2007
+++ Makefile.config     Mon Jun  4 12:46:40 2007
@@ -137,9 +137,9 @@
 ifeq ($(DEBUG), 1)
 #additional CFLAGS -g -O0 will always be added when in debug mode
 #CFLAGS = -Wall -Wextra -Wno-unused -Winline
-CFLAGS = -Wall -Winline
+CFLAGS ?= -Wall -Winline
 else
-CFLAGS = -O2 -Wall
+CFLAGS ?= -O2 -Wall
 #CFLAGS = -O3 -Wall -march=athlon-tbird -mtune=athlon-tbird
 #CFLAGS = -O3 -Wall -march=pentium -mtune=pentium4
 endif

Other related posts: