From 81dca7a3377e5b100f81fc6eda6a114cc80274ff Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Wed, 16 Nov 2005 02:53:18 +0000 Subject: Add 'static.c' back into the build. --- libc/misc/internals/Makefile | 4 ++-- libc/misc/internals/static.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 libc/misc/internals/static.c diff --git a/libc/misc/internals/Makefile b/libc/misc/internals/Makefile index 9150933a8..1df05a934 100644 --- a/libc/misc/internals/Makefile +++ b/libc/misc/internals/Makefile @@ -37,7 +37,7 @@ endif OBJ_LIST=../../obj.misc.internals -all: $(OBJ_LIST) interp.o +all: $(OBJ_LIST) interp.o static.o $(OBJ_LIST): $(OBJS) echo $(patsubst %, misc/internals/%, $(OBJS)) > $(OBJ_LIST) @@ -50,7 +50,7 @@ interp.c: Makefile "(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> interp.c echo "#endif" >> interp.c -$(COBJS) interp.o: %.o : %.c +$(COBJS) interp.o static.o: %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o diff --git a/libc/misc/internals/static.c b/libc/misc/internals/static.c new file mode 100644 index 000000000..cd39ffdd7 --- /dev/null +++ b/libc/misc/internals/static.c @@ -0,0 +1,4 @@ +#include + +/* Force static libraries to know about ... */ +void *__libc_stack_end=NULL; -- cgit v1.2.3