Skip to content

Commit

Permalink
Statically link ocamlformat-rpc (#4)
Browse files Browse the repository at this point in the history
Fixes a bug where only the ocamlformat binary was being statically
linked, not the ocamlformat-rpc binary in the same package.

Signed-off-by: Stephen Sherratt <[email protected]>
  • Loading branch information
gridbugs authored Nov 7, 2024
1 parent a8dbec9 commit 334d806
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion flakes/ocamlformat/static.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
diff --git a/bin/ocamlformat-rpc/dune b/bin/ocamlformat-rpc/dune
index f1bda4fa..11e8e369 100644
--- a/bin/ocamlformat-rpc/dune
+++ b/bin/ocamlformat-rpc/dune
@@ -13,6 +13,7 @@
(name main)
(public_name ocamlformat-rpc)
(package ocamlformat)
+ (link_flags (:standard -cclib -static))
(flags
(:standard -open Ocamlformat_stdlib))
(instrumentation
diff --git a/bin/ocamlformat/dune b/bin/ocamlformat/dune
index 04288971..cf5e13c5 100644
index 86de53ed..7e0eb858 100644
--- a/bin/ocamlformat/dune
+++ b/bin/ocamlformat/dune
@@ -14,6 +14,7 @@
Expand Down

0 comments on commit 334d806

Please sign in to comment.