Makefile.in: pass CPPFLAGS where appropriate
commit097786084353a5dcf9980e3cdec04acc10ffc45c
authorPaul Fertser <fercerpav@gmail.com>
Sun, 11 May 2014 17:45:51 +0000 (11 21:45 +0400)
committerSteve Bennett <steveb@workware.net.au>
Mon, 12 May 2014 01:41:25 +0000 (12 11:41 +1000)
tree6ed8425c704f5f60cc351038dede0f72144c505d
parent708ea1cb2a2a95d5559924b79adbb5f684352d27
Makefile.in: pass CPPFLAGS where appropriate

CPPFLAGS is a standard variable to pass additional
preprocessor-related parameters.

Debian build system uses that to add -D_FORTIFY_SOURCE=2 and then
checks the buildlogs to ensure the command line contained all the
fortification parameters (they use "-fstack-protector
--param=ssp-buffer-size=4" for CFLAGS).

Example blhc output before the fix:

CPPFLAGS missing (-D_FORTIFY_SOURCE=2): cc -D_GNU_SOURCE -Wall  -I. -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall   -c -o _load-static-exts.o _load-static-exts.c

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Makefile.in