zorp-corp / sword

A modern Nock runtime with automatic persistence.
MIT License
94 stars 15 forks source link

Static build #155

Open eamsden opened 11 months ago

eamsden commented 11 months ago

Right now we link c dependencies (most notably Urcrypt and its transitive dependencies) by building them with Nix. This defaults to dynamic linking. An executable built this way cannot be distributed independently as it depends on shared objects from the Nix store. We should build a statically linked binary, but this is complicated by conflicting opinions in our dependencies:

eamsden commented 10 months ago

Depends on #156

eamsden commented 10 months ago

Verified that we can do this after #189 so long as we make sure a static glibc is available.