Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 1 | From 38a5f403b033d03cdac3ff814687d83f61527d8e Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 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 | |
| 14 | Update to work with 4.0.8 |
| 15 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> |
| 16 | |
| 17 | --- |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 18 | Upstream-Status: Pending |
| 19 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 20 | src/Makefile | 3 ++- |
| 21 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 22 | |
| 23 | diff --git a/src/Makefile b/src/Makefile |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 24 | index ecbd275..39decee 100644 |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 25 | --- a/src/Makefile |
| 26 | +++ b/src/Makefile |
| 27 | @@ -13,7 +13,8 @@ |
| 28 | # Just use 'make dep', but this is only needed by developers. |
| 29 | |
| 30 | release_hdr := $(shell sh -c './mkreleasehdr.sh') |
| 31 | -uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
| 32 | +# use fake uname option to force use of generic libc |
| 33 | +uname_S := "USE_LIBC_MALLOC" |
| 34 | uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 35 | CLANG := $(findstring clang,$(shell sh -c '$(CC) --version | head -1')) |
| 36 | OPTIMIZATION?=-O3 |