On 11 June 2011 00:40, Connor Lane Smith <[email protected]> wrote:
> Why not just edit the individual files' main() functions (in a build
> directory) and generate a main.c, compile them, and link the object
> files together? Don't have to worry about anything except main(),
> then.

An update: I've done this, and added it to the Makefile. It's a little
simpler than doing it by concatenating all the sources, since we don't
need to worry about statics or anything. Currently sbase-box comes out
at 69K statically linked against musl, or 23K dynamically linked
against glibc.

So next I'll carry on with the items in TODO. Any contributions are welcome. ;)

Thanks,
cls

Reply via email to