shithub: scc

Download patch

ref: 5ed3a4a81f590fe89edeeda18e56c663e46d1722
parent: a4291b4ef6cd468380fd6cdedb39c1aa9e2695a3
author: Quentin Rameau <[email protected]>
date: Sun May 2 10:41:33 EDT 2021

libc: Fix object list dependencies

The dependency wasn't robust, as the list file
would not be part of the dependency chain.

--- a/src/libc/arch/amd64/Makefile
+++ b/src/libc/arch/amd64/Makefile
@@ -21,7 +21,9 @@
 
 all: $(LIBC) $(SYS)
 
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
 	$(MKLST)
 
 $(SYS): FORCE
--- a/src/libc/arch/arm/Makefile
+++ b/src/libc/arch/arm/Makefile
@@ -16,7 +16,9 @@
 
 all: $(LIBC) $(SYS)
 
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
 	$(MKLST)
 
 $(SYS): FORCE
--- a/src/libc/arch/arm64/Makefile
+++ b/src/libc/arch/arm64/Makefile
@@ -16,7 +16,9 @@
 
 all: $(LIBC) $(SYS)
 
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
 	$(MKLST)
 
 $(SYS): FORCE
--- a/src/libc/arch/i386/Makefile
+++ b/src/libc/arch/i386/Makefile
@@ -16,7 +16,9 @@
 
 all: $(LIBC) $(SYS)
 
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
 	$(MKLST)
 
 $(SYS): FORCE
--- a/src/libc/arch/ppc/Makefile
+++ b/src/libc/arch/ppc/Makefile
@@ -16,7 +16,9 @@
 
 all: $(LIBC) $(SYS)
 
-$(LIBC): $(OBJS)
+$(LIBC): $(LIBCLST)
+
+$(LIBCLST): $(OBJS)
 	$(MKLST)
 
 $(SYS): FORCE