shithub: scc

Download patch

ref: 0b360327c6f4f4c79d8872c4b2dc486aba378f6d
parent: b0561e50ec063be50dcd76fb3c1f6cd31dbd75fe
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Oct 2 19:18:22 EDT 2021

libc: Fix list of objects for amd64-netbsd

--- a/src/libc/arch/Makefile
+++ b/src/libc/arch/Makefile
@@ -3,16 +3,17 @@
 PROJECTDIR = ../../..
 
 DIRS =\
-	$(ARCHS)\
-	$(SYSTEMS)\
-	posix\
-
-ARCHS =\
 	amd64\
 	arm64\
 	arm\
 	i386\
 	ppc\
+	netbsd\
+	openbsd\
+	darwin\
+	dragonfly\
+	linux\
+	posix\
 
 POSIX =\
 	netbsd\
@@ -20,9 +21,6 @@
 	darwin\
 	dragonfly\
 	linux\
-
-SYSTEM =\
-	$(POSIX)\
 
 include $(PROJECTDIR)/scripts/rules.mk
 include ../rules.mk
--- a/src/libc/arch/netbsd/Makefile
+++ b/src/libc/arch/netbsd/Makefile
@@ -4,8 +4,8 @@
 include ../../rules.mk
 
 OBJS =\
-	sigaction.$O\
+	_sigaction.$O\
 
-NODEP = 1
-
 all: $(OBJS)
+
+include deps.mk
--- a/src/libc/arch/netbsd/_sigaction.c
+++ b/src/libc/arch/netbsd/_sigaction.c
@@ -1,4 +1,6 @@
 #include <stddef.h>
+
+#include <arch/sigaction.h>
 #include <sys.h>
 
 typedef struct ucontext_t ucontext_t;
--- /dev/null
+++ b/src/libc/arch/netbsd/deps.mk
@@ -1,0 +1,1 @@
+#deps
--- a/src/libc/objs/amd64-netbsd.mk
+++ b/src/libc/objs/amd64-netbsd.mk
@@ -2,3 +2,37 @@
 
 OBJS =\
 	$(COMMON_OBJS)\
+	arch/amd64/longjmp.$O\
+	arch/amd64/memchr.$O\
+	arch/amd64/memcmp.$O\
+	arch/amd64/memcpy.$O\
+	arch/amd64/memmove.$O\
+	arch/amd64/memset.$O\
+	arch/amd64/netbsd/_brk.$O\
+	arch/amd64/netbsd/_close.$O\
+	arch/amd64/netbsd/_exit.$O\
+	arch/amd64/netbsd/_getpid.$O\
+	arch/amd64/netbsd/_kill.$O\
+	arch/amd64/netbsd/_lseek.$O\
+	arch/amd64/netbsd/_open.$O\
+	arch/amd64/netbsd/_read.$O\
+	arch/amd64/netbsd/_setcontext.$O\
+	arch/amd64/netbsd/_sigaction2.$O\
+	arch/amd64/netbsd/_sys_errlist.$O\
+	arch/amd64/netbsd/_write.$O\
+	arch/amd64/netbsd/crt.$O\
+	arch/amd64/setjmp.$O\
+	arch/amd64/strchr.$O\
+	arch/amd64/strcmp.$O\
+	arch/amd64/strcpy.$O\
+	arch/netbsd/_sigaction.$O\
+	arch/posix/_getheap.$O\
+	arch/posix/_open.$O\
+	arch/posix/_systime.$O\
+	arch/posix/_tzone.$O\
+	arch/posix/clock.$O\
+	arch/posix/getenv.$O\
+	arch/posix/raise.$O\
+	arch/posix/signal.$O\
+	arch/posix/time.$O\
+	string/strlen.$O\