summarylogtreecommitdiffstats
path: root/static_libs.patch
blob: aed05ad1924b3589f1e8fbbc9d142cf4010dd121 (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# SPDX-FileCopyrightText: 2020 TQ Tezos <https://tqtezos.com/>
#
# SPDX-License-Identifier: LicenseRef-MIT-TQ
diff --git a/src/bin_client/dune b/src/bin_client/dune
index 00fb3a632..923739d2b 100644
--- a/src/bin_client/dune
+++ b/src/bin_client/dune
@@ -76,7 +76,9 @@
                     -open Tezos_client_commands
                     -open Tezos_mockup_commands
                     -open Tezos_client_base_unix
-                    -linkall)))
+                    -linkall
+                    -ccopt -static
+                    -cclib "-lusb-1.0 -lhidapi-libusb -ludev")))

 (rule
  (action
diff --git a/src/bin_codec/dune b/src/bin_codec/dune
index f7577c4e5..949d2cbc4 100644
--- a/src/bin_codec/dune
+++ b/src/bin_codec/dune
@@ -33,7 +33,9 @@
                    -open Tezos_clic
                    -open Tezos_stdlib_unix
                    -open Tezos_event_logging
-                   -linkall)))
+                   -linkall
+                   -ccopt -static
+                   -cclib "-lusb-1.0 -lhidapi-libusb -ludev")))

 (rule
  (action
diff --git a/src/bin_node/dune b/src/bin_node/dune
index 95a8d1af7..ce2ac8e3e 100644
--- a/src/bin_node/dune
+++ b/src/bin_node/dune
@@ -96,7 +96,8 @@
                    -open Tezos_shell_context
                    -open Tezos_workers
                    -open Tezos_protocol_updater
-                   -linkall)))
+                   -linkall
+                   -ccopt -static)))

 (rule
  (action
diff --git a/src/bin_signer/dune b/src/bin_signer/dune
index 26c1fa638..029a50c07 100644
--- a/src/bin_signer/dune
+++ b/src/bin_signer/dune
@@ -21,4 +21,6 @@
                    -open Tezos_rpc_http_server
                    -open Tezos_rpc_http_client_unix
                    -open Tezos_stdlib_unix
-                   -open Tezos_stdlib)))
+                   -open Tezos_stdlib
+                   -ccopt -static
+                   -cclib "-lusb-1.0 -lhidapi-libusb -ludev")))
diff --git a/src/proto_010_PtGRANAD/bin_accuser/dune b/src/proto_010_PtGRANAD/bin_accuser/dune
index 11c77973e3..43515f16ed 100644
--- a/src/proto_010_PtGRANAD/bin_accuser/dune
+++ b/src/proto_010_PtGRANAD/bin_accuser/dune
@@ -10,4 +10,6 @@
                    -open Tezos_client_commands
                    -open Tezos_baking_010_PtGRANAD_commands
                    -open Tezos_stdlib_unix
-                   -open Tezos_client_base_unix)))
+                   -open Tezos_client_base_unix
+                   -ccopt -static
+                   -cclib "-lusb-1.0 -lhidapi-libusb -ludev")))
diff --git a/src/proto_010_PtGRANAD/bin_baker/dune b/src/proto_010_PtGRANAD/bin_baker/dune
index 0535edf13c..f0c85ad447 100644
--- a/src/proto_010_PtGRANAD/bin_baker/dune
+++ b/src/proto_010_PtGRANAD/bin_baker/dune
@@ -10,4 +10,6 @@
                    -open Tezos_client_commands
                    -open Tezos_baking_010_PtGRANAD_commands
                    -open Tezos_stdlib_unix
-                   -open Tezos_client_base_unix)))
+                   -open Tezos_client_base_unix
+                   -ccopt -static
+                   -cclib "-lusb-1.0 -lhidapi-libusb -ludev")))
diff --git a/src/proto_010_PtGRANAD/bin_endorser/dune b/src/proto_010_PtGRANAD/bin_endorser/dune
index c19a310a8f..6c38226293 100644
--- a/src/proto_010_PtGRANAD/bin_endorser/dune
+++ b/src/proto_010_PtGRANAD/bin_endorser/dune
@@ -10,4 +10,6 @@
                    -open Tezos_client_commands
                    -open Tezos_baking_010_PtGRANAD_commands
                    -open Tezos_stdlib_unix
-                   -open Tezos_client_base_unix)))
+                   -open Tezos_client_base_unix
+                   -ccopt -static
+                   -cclib "-lusb-1.0 -lhidapi-libusb -ludev")))
diff --git a/src/proto_011_PtHangz2/bin_accuser/dune b/src/proto_011_PtHangz2/bin_accuser/dune
index 11c77973e3..43515f16ed 100644
--- a/src/proto_011_PtHangz2/bin_accuser/dune
+++ b/src/proto_011_PtHangz2/bin_accuser/dune
@@ -10,4 +10,6 @@
                    -open Tezos_client_commands
                    -open Tezos_baking_011_PtHangz2_commands
                    -open Tezos_stdlib_unix
-                   -open Tezos_client_base_unix)))
+                   -open Tezos_client_base_unix
+                   -ccopt -static
+                   -cclib "-lusb-1.0 -lhidapi-libusb -ludev")))
diff --git a/src/proto_011_PtHangz2/bin_baker/dune b/src/proto_011_PtHangz2/bin_baker/dune
index 0535edf13c..f0c85ad447 100644
--- a/src/proto_011_PtHangz2/bin_baker/dune
+++ b/src/proto_011_PtHangz2/bin_baker/dune
@@ -10,4 +10,6 @@
                    -open Tezos_client_commands
                    -open Tezos_baking_011_PtHangz2_commands
                    -open Tezos_stdlib_unix
-                   -open Tezos_client_base_unix)))
+                   -open Tezos_client_base_unix
+                   -ccopt -static
+                   -cclib "-lusb-1.0 -lhidapi-libusb -ludev")))
diff --git a/src/proto_011_PtHangz2/bin_endorser/dune b/src/proto_011_PtHangz2/bin_endorser/dune
index c19a310a8f..6c38226293 100644
--- a/src/proto_011_PtHangz2/bin_endorser/dune
+++ b/src/proto_011_PtHangz2/bin_endorser/dune
@@ -10,4 +10,6 @@
                    -open Tezos_client_commands
                    -open Tezos_baking_011_PtHangz2_commands
                    -open Tezos_stdlib_unix
-                   -open Tezos_client_base_unix)))
+                   -open Tezos_client_base_unix
+                   -ccopt -static
+                   -cclib "-lusb-1.0 -lhidapi-libusb -ludev")))
diff --git a/src/bin_sandbox/dune b/src/bin_sandbox/dune
index 6289c6d124..aa2eb20a29 100644
--- a/src/bin_sandbox/dune
+++ b/src/bin_sandbox/dune
@@ -2,4 +2,5 @@
   (names main)
   (libraries tezos-base
              tezos-base.unix
-             flextesa))
+             flextesa)
+  (flags :standard -ccopt -static))