(executable
 (name main)
 (public_name todo-ocaml)
 (package todo_ocaml)
 (libraries todo eio eio_posix cohttp-eio http uri cstruct)
 (link_flags (:standard (:include link_flags.sexp))))

; LINK_FLAGS="-ccopt -static" links statically (the shipped arm64 build).
(rule
 (target link_flags.sexp)
 (action
  (with-stdout-to
   %{target}
   (echo "(%{env:LINK_FLAGS=})"))))
