From 097786084353a5dcf9980e3cdec04acc10ffc45c Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Sun, 11 May 2014 21:45:51 +0400 Subject: 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 --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 6d45b15..b27ecd1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -18,7 +18,7 @@ SHOBJ_LDFLAGS ?= @SHOBJ_LDFLAGS@ @else SHOBJ_LDFLAGS ?= @SHOBJ_LDFLAGS_R@ @endif -CFLAGS = @CFLAGS@ @CCOPTS@ +CFLAGS = @CFLAGS@ @CCOPTS@ @CPPFLAGS@ CXXFLAGS = @CXXFLAGS@ @CXXOPTS@ LDFLAGS = @LDFLAGS@ LDLIBS += @LDLIBS@ -- cgit v1.1