From 82acb2685351bac138327d5db5a9710b81765ac9 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 27 Nov 2023 16:55:41 -0500 Subject: add weak main() symbol so __main.o can go in the .a and .so --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f92a5b77..55c34cd6 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ newdeps: cleandeps for i in $$(find src -name \*.$(ARCHITECTURE)-$(WORDSIZE).s); do sh mk/deps.sh $$i; done libung.so: libc.a libm.a - $(CC) -o libung.so -shared $$(ls -1 obj/*.o | grep -v __main.o) + $(CC) -o libung.so -shared obj/*.o deps: $(MAKE) -f mk/deps.mk -- cgit v1.2.1