-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatic-linking.patch
62 lines (62 loc) · 1.85 KB
/
static-linking.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
diff --git a/bin/dune b/bin/dune
index d94b6ec2..abd02e00 100644
--- a/bin/dune
+++ b/bin/dune
@@ -4,6 +4,7 @@
(preprocess
(pps lwt_ppx ppx_let ppx_deriving_yojson ppx_deriving.std))
(flags
+ (-ccopt -static)
(:standard
(-w -39)
"-open"
diff --git a/esy-build-package/bin/dune b/esy-build-package/bin/dune
index 47148185..f9533d73 100644
--- a/esy-build-package/bin/dune
+++ b/esy-build-package/bin/dune
@@ -2,6 +2,7 @@
(name esyBuildPackageCommand)
(modules esyBuildPackageCommand)
(flags
+ (-ccopt -static)
(:standard
(-w -39)))
(preprocess
@@ -13,6 +14,7 @@
(name esyRewritePrefixCommand)
(modules esyRewritePrefixCommand)
(flags
+ (-ccopt -static)
(:standard
(-w -39)))
(preprocess
diff --git a/esy.json b/esy.json
index a31db1c7..5c6cb386 100644
--- a/esy.json
+++ b/esy.json
@@ -32,6 +32,7 @@
"test:e2e-slow": "node test-e2e-slow/run-slow-tests.js"
},
"resolutions": {
+ "ocaml": "4.10.1002-musl.static.flambda",
"@opam/bos": {
"source": "github:esy-ocaml/bos:opam#a241814516fbe2",
"override": {"dependencies": {"@opam/mtime": "*"}}
@@ -40,6 +41,17 @@
"@opam/menhirSdk": "20200211",
"@opam/bigstringaf": "0.6.1",
"@opam/extlib": "1.7.7-1",
+ "@opam/extlib-compat": {
+ "source": "https://ygrek.org/p/release/ocaml-extlib/extlib-1.7.7.tar.gz#sha256:4183abeca72efefc2513a440706c0e6e56d4676f60ae89a4306f8e5e03fbb5eb",
+ "override": {
+ "buildsInSource": true,
+ "build": ["make minimal=1 build"],
+ "install": ["make minimal=1 install"]
+ }
+ },
+ "@opam/dune-configurator": "2.6.1",
+ "@opam/dune-build-info": "2.6.1",
+ "@opam/dune-private-libs": "2.6.1",
"@opam/cmdliner": "github:esy-ocaml/cmdliner:cmdliner.opam#e9316bc",
"@opam/astring": "github:dune-universe/astring:astring.opam#baa4e7e2bf919293aac2c899786c2ac40757dd9b"
},