libc: add LIBC_MALLOC option
This will enable alternative mallocs to be included in the tree and selected by setting LIBC_MALLOC. As there is only one today (jemalloc) this option does nothing, but we expect to add other implementations in the future. This will also reduce diffs to CheriBSD. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D41660
This commit is contained in:
@@ -228,6 +228,12 @@ __DEFAULT_DEPENDENT_OPTIONS= \
|
||||
LOADER_VERIEXEC_VECTX/LOADER_VERIEXEC \
|
||||
VERIEXEC/BEARSSL \
|
||||
|
||||
__SINGLE_OPTIONS = \
|
||||
LIBC_MALLOC
|
||||
|
||||
__LIBC_MALLOC_OPTIONS= jemalloc
|
||||
__LIBC_MALLOC_DEFAULT= jemalloc
|
||||
|
||||
# MK_*_SUPPORT options which default to "yes" unless their corresponding
|
||||
# MK_* variable is set to "no".
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user