From f1f91f8016e468718df9c581662f8417a1fb999c Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Tue, 18 Feb 2014 15:44:56 +0530 Subject: build: Don't discard CFLAGS in configure The configure script was discarding the passed CFLAGS inadvertently. This caused failures while building rpms on epel7 and fedora-{19,20}, as the hardened CFLAGS passed by rpmbuild on these distros were discarded which lead to the failure of rpmbuild. Thanks to Neils de Vos for helping track this down. Change-Id: I5b2aa5d449d13bf67df6c19cda178bddfe6c3652 BUG: 1066385 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.org/7029 Reviewed-by: Justin Clift Tested-by: Justin Clift Reviewed-by: Niels de Vos Tested-by: Niels de Vos Reviewed-by: Vijay Bellur --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 0c516c4fd..7c383532e 100644 --- a/configure.ac +++ b/configure.ac @@ -190,10 +190,10 @@ AC_ARG_ENABLE([debug], [Enable debug build options.])) if test "x$enable_debug" = "xyes"; then BUILD_DEBUG=yes - CFLAGS="-g -O0 -DDEBUG" + CFLAGS="${CFLAGS} -g -O0 -DDEBUG" else BUILD_DEBUG=no - CFLAGS="-g -O2" + CFLAGS="${CFLAGS} -g -O2" fi AC_ARG_WITH(pkgconfigdir, -- cgit