blob: f9f1c0dbd52126df22146f29bd8bba5598b190e4 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From dc745a33f3875cc72d41bd34ed490b352e546352 Mon Sep 17 00:00:00 2001
2From: Venture Research <tech@ventureresearch.com>
3Date: Fri, 8 Feb 2013 17:39:52 -0600
4Subject: [PATCH] hiredis: use default CC if it is set
5
6Instead of trying to automagically figure out CC, which breaks with OE
7as CC has spaces in it, just skip it if one was already passed in.
8
9Signed-off-by: Venture Research <tech@ventureresearch.com>
10
11Update to work with 3.0.x
12Signed-off-by: Armin Kuster <akuster808@gmail.com>
13
14---
15 deps/hiredis/Makefile | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18Index: deps/hiredis/Makefile
19===================================================================
20--- a/deps/hiredis/Makefile
21+++ b/deps/hiredis/Makefile
22@@ -24,7 +24,7 @@ endef
23 export REDIS_TEST_CONFIG
24
25 # Fallback to gcc when $CC is not in $PATH.
26-CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
27+CC?=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
28 OPTIMIZATION?=-O3
29 WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
30 DEBUG?= -g -ggdb