Add support for passing CPPFLAGS to Makefiles

This is required in order to add Hardening support.
See https://wiki.debian.org/Hardening

Earlier version of the patch by Thorsten Alteholz <debian@alteholz.de>
This commit is contained in:
Lucas Nussbaum 2015-11-07 09:35:23 +01:00
parent 695402d288
commit 47ab75eb66
4 changed files with 9 additions and 8 deletions

View file

@ -25,8 +25,8 @@ LD := g++
AR := ar rc
RANLIB := ranlib
DEBUG_CFLAGS := -Wall -Wno-format -g -DDEBUG
RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3
DEBUG_CFLAGS := -Wall -Wno-format -g -DDEBUG $(CPPFLAGS)
RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O3 $(CPPFLAGS)
LIBS :=