summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files/mdadm-3.2.2_fix_for_x32.patch
blob: 79ba2cf9e908502cb7cf8157240ed359ec21c6e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
UpstreamStatus: pending

By hardcoding CC's definition in the Makefile, all the gcc parameters 
set by tune settings are lost. Causing compile failure with x32 toolchain

As the bitbake defined CC is good, there is no need to redfine CC in the 
make file, hence making the CC definition in the Makefile conditional.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/07

Index: mdadm-3.2.2/Makefile
===================================================================
--- mdadm-3.2.2.orig/Makefile
+++ mdadm-3.2.2/Makefile
@@ -40,7 +40,8 @@ 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