git: 4c757938e4f2 - main - libc: include malloc via stdlib/Makefile.inc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Aug 2023 18:20:11 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=4c757938e4f28adfd57cc1e7271c2dd174d0ce9e
commit 4c757938e4f28adfd57cc1e7271c2dd174d0ce9e
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-08-16 18:16:26 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-08-16 18:16:26 +0000
libc: include malloc via stdlib/Makefile.inc
There's a hierarchy here and we should use it.
Improves: cbeacb7c46f3a3650e5dbefa9a1a18bc9943a8cc
Reviewed by: jrtc27, jhb, emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D41456
---
lib/libc/Makefile | 1 -
lib/libc/stdlib/Makefile.inc | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index d121d7be605a..a26215324332 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -113,7 +113,6 @@ NOASM=
.include "${LIBC_SRCTOP}/resolv/Makefile.inc"
.include "${LIBC_SRCTOP}/stdio/Makefile.inc"
.include "${LIBC_SRCTOP}/stdlib/Makefile.inc"
-.include "${LIBC_SRCTOP}/stdlib/jemalloc/Makefile.inc"
.include "${LIBC_SRCTOP}/stdtime/Makefile.inc"
.include "${LIBC_SRCTOP}/string/Makefile.inc"
.include "${LIBC_SRCTOP}/sys/Makefile.inc"
diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc
index e13ba020bad5..caa95bf53951 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -28,6 +28,8 @@ C99_Exit.c: ${LIBC_SRCTOP}/stdlib/_Exit.c .NOMETA
SYM_MAPS+= ${LIBC_SRCTOP}/stdlib/Symbol.map
+.include "${LIBC_SRCTOP}/stdlib/jemalloc/Makefile.inc"
+
# machine-dependent stdlib sources
.sinclude "${LIBC_SRCTOP}/${LIBC_ARCH}/stdlib/Makefile.inc"