I'm writing a compiler for macOS on x86-64, but when I link the object files together, ld
says
ld: dynamic main executables must link with libSystem.dylib for inferred architecture x86_64
But since libSystem contains libc, I don't want to use it (it would give me lots of duplicates). How can I get around this?