diff options
author | Maxin B. John <maxin.john@intel.com> | 2016-02-08 10:59:29 +0100 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-02-08 16:54:34 +0100 |
commit | 1180ed5000da7894f3d359b063a789f5268e02f6 (patch) | |
tree | 0dd7b5bf23c89869a93d9fec1fb806d8347ad3c6 /Makefile | |
parent | Fix some type comparison problems (diff) | |
download | mdadm-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |