combine malloc, free, and realloc into one file, because that's what
libc does, and we don't want things to get screwed up at link-time.
This commit is contained in:
parent
842069a9cb
commit
47850d1d3b
@ -1,9 +1,11 @@
|
||||
# $Id: Makefile,v 1.1 1993/09/23 21:10:40 cgd Exp $
|
||||
# $Id: Makefile,v 1.2 1993/10/26 06:52:16 cgd Exp $
|
||||
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
|
||||
LIB= gnumalloc
|
||||
SRCS+= malloc.c free.c cfree.c realloc.c calloc.c morecore.c
|
||||
SRCS+= combined.c
|
||||
#SRCS+= malloc.c free.c realloc.c
|
||||
SRCS+= cfree.c calloc.c morecore.c
|
||||
SRCS+= memalign.c valloc.c mcheck.c mtrace.c mstats.c vm-limit.c
|
||||
SRCS+= ralloc.c
|
||||
NOMAN= noman
|
||||
|
12
gnu/lib/libmalloc/combined.c
Normal file
12
gnu/lib/libmalloc/combined.c
Normal file
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* this file (combined.c) is malloc.c, free.c, and realloc.c, combined into
|
||||
* one file, because the malloc.o in libc defined malloc, realloc, and free,
|
||||
* and libc sometimes invokes realloc, which can greatly confuse things
|
||||
* in the linking process...
|
||||
*
|
||||
* $Id: combined.c,v 1.1 1993/10/26 06:52:17 cgd Exp $
|
||||
*/
|
||||
|
||||
#include "malloc.c"
|
||||
#include "free.c"
|
||||
#include "realloc.c"
|
Loading…
Reference in New Issue
Block a user