summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2008-10-17 08:30:20 +0000
committernetchild <netchild@FreeBSD.org>2008-10-17 08:30:20 +0000
commit34697cecc70bcdfc22c33f719fb80e4fd987042b (patch)
tree70fbcfd011b8fca8ec3220db307422fe05b78c29 /lib
parent8ca0ed4e58f1c331aad065efa90b3e44e5e1e371 (diff)
downloadFreeBSD-src-34697cecc70bcdfc22c33f719fb80e4fd987042b.zip
FreeBSD-src-34697cecc70bcdfc22c33f719fb80e4fd987042b.tar.gz
MTC r183949:
Allow to define MALLOC_PRODUCTION with a make variable instead of polluting the global CFLAGS. Reviewed by: jasone
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdlib/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/stdlib/Makefile.inc b/lib/libc/stdlib/Makefile.inc
index 86b3c65..3f3622d 100644
--- a/lib/libc/stdlib/Makefile.inc
+++ b/lib/libc/stdlib/Makefile.inc
@@ -48,3 +48,8 @@ MLINKS+=strtoul.3 strtoull.3 strtoul.3 strtouq.3 strtoul.3 strtoumax.3
MLINKS+=malloc.3 calloc.3 malloc.3 free.3 malloc.3 malloc.conf.5 \
malloc.3 realloc.3 malloc.3 reallocf.3 malloc.3 malloc_usable_size.3
MLINKS+=tsearch.3 tdelete.3 tsearch.3 tfind.3 tsearch.3 twalk.3
+
+.if defined(MALLOC_PRODUCTION)
+CFLAGS+= -DMALLOC_PRODUCTION
+.endif
+
OpenPOWER on IntegriCloud