From 51a5f347ea4826c61349c5f0890d7f984c166eac Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Fri, 17 May 2024 16:19:32 -0500 Subject: Setup everything for static and non-static release --- README | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'README') diff --git a/README b/README index 3f7c386..9f96ede 100644 --- a/README +++ b/README @@ -87,6 +87,10 @@ _________________ dune build + Optimized build with + + dune build --profile release + And to run: dune exec -- stitch @@ -95,11 +99,10 @@ _________________ dune exec -- stitch --help=groff - To prepare for release, we need to statically link the binary, which - unless you use a musl based distro it will not do out of the box. + When the system is built with Nix, it will be dynamically linked. - There is a Dockerfile included that prepares the release, use it with - podman: + To build a static release, There is a Dockerfile included that + compiles it with musl, use it with podman: podman pull docker.io/alpine:edge podman build . -t stitch:latest -- cgit v1.2.3