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