summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/redis/redis/hiredis-update-Makefile-to-add-symbols-to-staticlib.patch19
-rw-r--r--meta-oe/recipes-extended/redis/redis_3.0.2.bb2
2 files changed, 21 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/redis/redis/hiredis-update-Makefile-to-add-symbols-to-staticlib.patch b/meta-oe/recipes-extended/redis/redis/hiredis-update-Makefile-to-add-symbols-to-staticlib.patch
new file mode 100644
index 000000000..2b3b58793
--- /dev/null
+++ b/meta-oe/recipes-extended/redis/redis/hiredis-update-Makefile-to-add-symbols-to-staticlib.patch
@@ -0,0 +1,19 @@
1--- redis-3.0.2/deps/hiredis/Makefile.orig 2016-05-06 19:36:26.179003036 -0700
2+++ redis-3.0.2/deps/hiredis/Makefile 2016-05-06 19:40:15.341340736 -0700
3@@ -25,7 +25,7 @@
4
5 # Fallback to gcc when $CC is not in $PATH.
6 CC?=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
7-OPTIMIZATION?=-O3
8+OPTIMIZATION?=-O2
9 WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
10 DEBUG?= -g -ggdb
11 REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH)
12@@ -68,6 +68,7 @@
13
14 $(STLIBNAME): $(OBJ)
15 $(STLIB_MAKE_CMD) $(OBJ)
16+ $(RANLIB) $@
17
18 dynamic: $(DYLIBNAME)
19 static: $(STLIBNAME)
diff --git a/meta-oe/recipes-extended/redis/redis_3.0.2.bb b/meta-oe/recipes-extended/redis/redis_3.0.2.bb
index 55f2c9669..2e4b760cc 100644
--- a/meta-oe/recipes-extended/redis/redis_3.0.2.bb
+++ b/meta-oe/recipes-extended/redis/redis_3.0.2.bb
@@ -12,7 +12,9 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
12 file://oe-use-libc-malloc.patch \ 12 file://oe-use-libc-malloc.patch \
13 file://redis.conf \ 13 file://redis.conf \
14 file://init-redis-server \ 14 file://init-redis-server \
15 file://hiredis-update-Makefile-to-add-symbols-to-staticlib.patch \
15" 16"
17
16SRC_URI[md5sum] = "87be8867447f62524b584813e5a7bd14" 18SRC_URI[md5sum] = "87be8867447f62524b584813e5a7bd14"
17SRC_URI[sha256sum] = "93e422c0d584623601f89b956045be158889ebe594478a2c24e1bf218495633f" 19SRC_URI[sha256sum] = "93e422c0d584623601f89b956045be158889ebe594478a2c24e1bf218495633f"
18 20