Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | From f8861d2129b9e18bba137705bfa38c6bd9be1790 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 | Signed-off-by: Venture Research <tech@ventureresearch.com> |
| 13 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 14 | Update to work with 4.0.8 |
| 15 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 16 | |
| 17 | --- |
| 18 | src/Makefile | 2 +- |
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 20 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 21 | diff --git a/src/Makefile b/src/Makefile |
| 22 | index 86e0b3fe..a810180b 100644 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | --- a/src/Makefile |
| 24 | +++ b/src/Makefile |
| 25 | @@ -13,7 +13,8 @@ |
| 26 | # Just use 'make dep', but this is only needed by developers. |
| 27 | |
| 28 | release_hdr := $(shell sh -c './mkreleasehdr.sh') |
| 29 | -uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
| 30 | +# use fake uname option to force use of generic libc |
| 31 | +uname_S := "USE_LIBC_MALLOC" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 32 | uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 33 | OPTIMIZATION?=-O2 |
| 34 | DEPENDENCY_TARGETS=hiredis linenoise lua |