diff options
Diffstat (limited to 'meta-oe/recipes-extended/redis/redis-7.2.8/0003-hack-to-force-use-of-libc-malloc.patch')
-rw-r--r-- | meta-oe/recipes-extended/redis/redis-7.2.8/0003-hack-to-force-use-of-libc-malloc.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/redis/redis-7.2.8/0003-hack-to-force-use-of-libc-malloc.patch b/meta-oe/recipes-extended/redis/redis-7.2.8/0003-hack-to-force-use-of-libc-malloc.patch new file mode 100644 index 0000000000..1f97f9783d --- /dev/null +++ b/meta-oe/recipes-extended/redis/redis-7.2.8/0003-hack-to-force-use-of-libc-malloc.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 7a98e3ac480413ce7db3a5edd5dc70458b921b29 Mon Sep 17 00:00:00 2001 | ||
2 | From: Venture Research <tech@ventureresearch.com> | ||
3 | Date: Wed, 6 Feb 2013 20:51:02 -0600 | ||
4 | Subject: [PATCH] hack to force use of libc malloc | ||
5 | |||
6 | Hack to force libc usage as it seems the option to pass it in has been | ||
7 | removed in favor of magic. | ||
8 | |||
9 | Note that this of course doesn't allow tcmalloc and jemalloc, however | ||
10 | jemalloc wasn't building correctly. | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | |||
14 | Signed-off-by: Venture Research <tech@ventureresearch.com> | ||
15 | |||
16 | Update to work with 4.0.8 | ||
17 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> | ||
18 | --- | ||
19 | src/Makefile | 3 ++- | ||
20 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/src/Makefile b/src/Makefile | ||
23 | index ecbd275..39decee 100644 | ||
24 | --- a/src/Makefile | ||
25 | +++ b/src/Makefile | ||
26 | @@ -13,7 +13,8 @@ | ||
27 | # Just use 'make dep', but this is only needed by developers. | ||
28 | |||
29 | release_hdr := $(shell sh -c './mkreleasehdr.sh') | ||
30 | -uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') | ||
31 | +# use fake uname option to force use of generic libc | ||
32 | +uname_S := "USE_LIBC_MALLOC" | ||
33 | uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') | ||
34 | CLANG := $(findstring clang,$(shell sh -c '$(CC) --version | head -1')) | ||
35 | OPTIMIZATION?=-O3 | ||