From 2d589273dd36c5eb271a035ea0e669b64dae257f Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 30 Jul 2014 05:09:47 -0700 Subject: [PATCH] configure: Split adding of CFLAGS and CPPFLAGS for hardened toolchain --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 81e1d3fc7f..6e210bbffd 100755 --- a/configure +++ b/configure @@ -2553,8 +2553,9 @@ case "$toolchain" in add_ldflags -fprofile-arcs -ftest-coverage ;; hardened) - add_cflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all - add_ldflags -Wl,-z,relro -Wl,-z,now + add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 + add_cflags -fno-strict-overflow -fstack-protector-all + add_ldflags -Wl,-z,relro -Wl,-z,now ;; ?*) die "Unknown toolchain $toolchain"