summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-16 02:53:18 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-16 02:53:18 +0000
commit81dca7a3377e5b100f81fc6eda6a114cc80274ff (patch)
treedf7528f2291b9116e2c202032e6fbde1d375f93a
parentf9df27a905a3a067ccec2bc23d4c1f1e6db9000c (diff)
downloaduClibc-alpine-81dca7a3377e5b100f81fc6eda6a114cc80274ff.tar.bz2
uClibc-alpine-81dca7a3377e5b100f81fc6eda6a114cc80274ff.tar.xz
Add 'static.c' back into the build.
-rw-r--r--libc/misc/internals/Makefile4
-rw-r--r--libc/misc/internals/static.c4
2 files changed, 6 insertions, 2 deletions
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 <stddef.h>
+
+/* Force static libraries to know about ... */
+void *__libc_stack_end=NULL;