. default jemalloc is not too easy to compile without threads
libraries/types
. non-default malloc has odd virtual address space binge problem
. switch to ack/minix malloc in old libc for now
MKYP=no #requires RPC
USE_JEMALLOC=no
+USE_MINIXMALLOC=yes
USE_FORT=no
USE_LIBTRE=no
.if (${USE_JEMALLOC} != "no")
SRCS+= jemalloc.c
+.elif (${USE_MINIXMALLOC} != "no")
+SRCS+= \
+ ${LIBCDIR}/../libc/stdlib/malloc.c \
+ ${LIBCDIR}/../libc/stdlib/calloc.c \
+ ${LIBCDIR}/../libc/stdlib/malloc-debug.c
.else
SRCS+= malloc.c
.endif