summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@intel.com>2016-02-08 10:59:29 +0100
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-02-08 16:54:34 +0100
commit1180ed5000da7894f3d359b063a789f5268e02f6 (patch)
tree0dd7b5bf23c89869a93d9fec1fb806d8347ad3c6 /Makefile
parentFix some type comparison problems (diff)
downloadmdadm-1180ed5000da7894f3d359b063a789f5268e02f6.tar.xz
mdadm-1180ed5000da7894f3d359b063a789f5268e02f6.zip
Makefile: make the CC definition conditional
By hardcoding CC's definition in the Makefile, all the external gcc parameters set by tune settings are lost. This causes compile failure with x32 toolchain Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fd79cfbc..5fd7f166 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,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
+CC ?= $(CROSS_COMPILE)gcc
CXFLAGS ?= -ggdb
CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
ifdef WARN_UNUSED