From: John Hodge Date: Sat, 31 May 2014 05:42:27 +0000 (+0800) Subject: Usermode/libposix - Update makefile to include crt* files X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c3f57a9570abaafb7cbf917abfb1ad8b87437aef;p=tpg%2Facess2.git Usermode/libposix - Update makefile to include crt* files --- 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