From 678ea70c88a17162eea3268b37880b85f1d00f7b Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Fri, 9 Mar 2018 19:43:07 +0200 Subject: [PATCH] Put user CFLAGS after the predefined flags This allows the usage of the CFLAGS variable to override existing parameters (e.g. optimizations) without editing config.mk. --- config.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.mk b/config.mk index 08808c6..ae4844a 100644 --- a/config.mk +++ b/config.mk @@ -14,8 +14,8 @@ PKG_CONFIG ?= pkg-config # flags CPPFLAGS += -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\" -CFLAGS += -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${CPPFLAGS} -LDFLAGS += -lm +CFLAGS := -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${CPPFLAGS} ${CFLAGS} +LDFLAGS := -lm ${LDFLAGS} CPPFLAGS_DEBUG := -DDEBUG_BUILD CFLAGS_DEBUG := -O0