summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-06-24 16:59:37 +1000
committerNeilBrown <neilb@suse.de>2013-06-24 16:59:37 +1000
commit688eb823bc07b080d045c415836ceb6fff02cce0 (patch)
tree2ecf8975534565973ead7716f3de041d6b23d2a2
parent41a663b26781f4339d4284e87c5bb179d76abd0a (diff)
downloadmdadm-688eb823bc07b080d045c415836ceb6fff02cce0.tar.gz
Make: CXFLAGS should be conditionally assigned.mdadm-3.3-rc1
As the Makefile encourages users to set CXFLAGS for extra flags, we should only conditionally set it. That way it can be over-ridden in the environment as well as on the command line. Suggested-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de> Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7e4333c..043bcea 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ KLIBC=/home/src/klibc/klibc-0.77
KLIBC_GCC = gcc -nostdinc -iwithprefix include -I$(KLIBC)/klibc/include -I$(KLIBC)/linux/include -I$(KLIBC)/klibc/arch/i386/include -I$(KLIBC)/klibc/include/bits32
CC = $(CROSS_COMPILE)gcc
-CXFLAGS = -ggdb
+CXFLAGS ?= -ggdb
CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
ifdef WARN_UNUSED
CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3