]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Make: CXFLAGS should be conditionally assigned. mdadm-3.3-rc1
authorNeilBrown <neilb@suse.de>
Mon, 24 Jun 2013 06:59:37 +0000 (16:59 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 24 Jun 2013 06:59:37 +0000 (16:59 +1000)
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>
Makefile

index 7e4333c482c7512d55dcbee0e35934778279db8c..043bcea7d00305df1918a204d0491438c2267a50 100644 (file)
--- 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