ligo/nix/static.patch

14 lines
375 B
Diff
Raw Normal View History

diff --git a/src/bin/dune b/src/bin/dune
index 162963b4b..29dfa5191 100644
2020-05-20 18:07:39 +04:00
With this patch, a static executable is produced
--- a/src/bin/dune
+++ b/src/bin/dune
@@ -34,5 +34,6 @@
(preprocess
(pps ppx_let ppx_blob bisect_ppx --conditional)
)
- (flags (:standard -open Simple_utils))
+ (flags (:standard -open Simple_utils)
+ -ccopt -static -cclib "-lgmp")
)