From c3f57a9570abaafb7cbf917abfb1ad8b87437aef Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 31 May 2014 13:42:27 +0800 Subject: [PATCH] Usermode/libposix - Update makefile to include crt* files --- Usermode/Libraries/libposix.so_src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Usermode/Libraries/libposix.so_src/Makefile b/Usermode/Libraries/libposix.so_src/Makefile index 41684d6e..69dc90a7 100644 --- a/Usermode/Libraries/libposix.so_src/Makefile +++ b/Usermode/Libraries/libposix.so_src/Makefile @@ -6,7 +6,9 @@ CPPFLAGS += CFLAGS += -Wextra ASFLAGS += -LDFLAGS += -soname libposix.so -Map map.txt -lc +LDFLAGS += -nostdlib +PRELINK += $(CRTI) $(CRTBEGIN) $(CRT0S) +LIBS += -lc $(CRTEND) $(CRTN) OBJ = main.o unistd.o dirent.o stat.o utmpx.o termios.o OBJ += pwd.o syslog.o sys_time.o sys_ioctl.o sys_resource.o -- 2.20.1