summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2023-11-27 16:55:41 -0500
committerJakob Kaivo <jkk@ung.org>2023-11-27 16:55:41 -0500
commit82acb2685351bac138327d5db5a9710b81765ac9 (patch)
treeec83a0d59c510658df30880082434a2f9c76d753 /Makefile
parente4718a6f72352b8b4b53a564463671e0a4446d0d (diff)
add weak main() symbol so __main.o can go in the .a and .so
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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