This PR makes possible to integrate other Qt modules (like QtQml or QtSvg) into our static builds, and fixes bug:
Thanks for that stab. Having an error when cross-compiling it for macOS:
0$ make -C depends HOST=x86_64-apple-darwin16 1... 2make[3]: x86_64-apple-darwin16-ar: Command not found 3make[3]: *** [Makefile:936: ../../lib/libQt5Qml.a] Error 127
@hebasto I hit the same error. I’ll take a look.
The current gitian binaries remains the same, e.g.:
0$ diffoscope x86_64-linux-gnu/a/bin/bitcoind x86_64-linux-gnu/b/bin/bitcoind
1--- x86_64-linux-gnu/a/bin/bitcoind
2+++ x86_64-linux-gnu/b/bin/bitcoind
3├── readelf --wide --notes {}
4│ @@ -1,15 +1,15 @@
5│
6│ Displaying notes found in: .note.ABI-tag
7│ Owner Data size Description
8│ GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag) OS: Linux, ABI: 3.2.0
9│
10│ Displaying notes found in: .note.gnu.build-id
11│ Owner Data size Description
12│ - GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: c0a64b5bca8f64dd545a358f340453c12d22b08e
13│ + GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: 358725c838441cb162c57fb89dbbd655b6c68c19
14│
15│ Displaying notes found in: .note.stapsdt
16│ Owner Data size Description
17│ stapsdt 0x00000036 NT_STAPSDT (SystemTap probe descriptors) Provider: libstdcxx
18│ Name: throw
19│ Location: 0x00000000008e469d, Base: 0x0000000000aea358, Semaphore: 0x0000000000000000
20│ Arguments: 8@%rdi 8@%rsi
21├── readelf --wide --decompress --hex-dump=.rodata {}
22│ @@ -38747,16 +38747,16 @@
23│ 0x00a97580 466f726d 61744172 672a2c20 696e7426 FormatArg*, int&
24│ 0x00a97590 2c20696e 74290000 00000000 00000000 , int)..........
25│ 0x00a975a0 43726561 74654261 73654368 61696e50 CreateBaseChainP
26│ 0x00a975b0 6172616d 73000000 00000000 00000000 arams...........
27│ 0x00a975c0 636f6e73 74204342 61736543 6861696e const CBaseChain
28│ 0x00a975d0 50617261 6d732620 42617365 50617261 Params& BasePara
29│ 0x00a975e0 6d732829 00536174 6f736869 0076302e ms().Satoshi.v0.
30│ - 0x00a975f0 32302e39 392e302d 32336433 61653761 20.99.0-23d3ae7a
31│ - 0x00a97600 63000000 00000000 00000000 00000000 c...............
32│ + 0x00a975f0 32302e39 392e302d 30333032 34303030 20.99.0-03024000
33│ + 0x00a97600 36000000 00000000 00000000 00000000 6...............
34│ 0x00a97610 00000000 00000000 00000000 00000000 ................
35│ 0x00a97620 766f6964 2074696e 79666f72 6d61743a void tinyformat:
36│ 0x00a97630 3a646574 61696c3a 3a466f72 6d617441 :detail::FormatA
37│ 0x00a97640 72673a3a 666f726d 61742873 74643a3a rg::format(std::
38│ 0x00a97650 6f737472 65616d26 2c20636f 6e737420 ostream&, const
39│ 0x00a97660 63686172 2a2c2063 6f6e7374 20636861 char*, const cha
40│ 0x00a97670 722a2c20 696e7429 20636f6e 73740000 r*, int) const..
41├── readelf --wide --decompress --hex-dump=.gnu_debuglink {}
42│ @@ -1,5 +1,5 @@
43│
44│ Hex dump of section '.gnu_debuglink':
45│ 0x00000000 62697463 6f696e64 2e646267 00000000 bitcoind.dbg....
46│ - 0x00000010 7c5d7cfa |]|.
47│ + 0x00000010 2e8c009
0$ diffoscope win64/a/bin/bitcoind.exe win64/b/bin/bitcoind.exe
1--- win64/a/bin/bitcoind.exe
2+++ win64/b/bin/bitcoind.exe
3@@ -7,15 +7,15 @@
4 00000060: 7420 6265 2072 756e 2069 6e20 444f 5320 t be run in DOS
5 00000070: 6d6f 6465 2e0d 0d0a 2400 0000 0000 0000 mode....$.......
6 00000080: 5045 0000 6486 0d00 0000 0000 0016 9700 PE..d...........
7 00000090: 0000 0000 f000 2e00 0b02 021e 0056 7d00 .............V}.
8 000000a0: 0010 9700 00ca 0000 0015 0000 0010 0000 ................
9 000000b0: 0000 4000 0000 0000 0010 0000 0002 0000 ..@.............
10 000000c0: 0400 0000 0000 0000 0600 0100 0000 0000 ................
11-000000d0: 0060 9800 0004 0000 3d2e 9700 0300 6001 .`......=.....`.
12+000000d0: 0060 9800 0004 0000 4cb1 9700 0300 6001 .`......L.....`.
13 000000e0: 0000 2000 0000 0000 0010 0000 0000 0000 .. .............
14 000000f0: 0000 1000 0000 0000 0010 0000 0000 0000 ................
15 00000100: 0000 0000 1000 0000 0070 9700 3f07 0000 .........p..?...
16 00000110: 0080 9700 8033 0000 00e0 9700 a804 0000 .....3..........
17 00000120: 00a0 8a00 0483 0300 0000 0000 0000 0000 ................
18 00000130: 00f0 9700 845e 0000 0000 0000 0000 0000 .....^..........
19 00000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................
20@@ -539026,16 +539026,16 @@
21 00839910: 6965 7273 2069 6e20 666f 726d 6174 2073 iers in format s
22 00839920: 7472 696e 6700 0000 7469 6e79 666f 726d tring...tinyform
23 00839930: 6174 3a20 546f 6f20 6d61 6e79 2063 6f6e at: Too many con
24 00839940: 7665 7273 696f 6e20 7370 6563 6966 6965 version specifie
25 00839950: 7273 2069 6e20 666f 726d 6174 2073 7472 rs in format str
26 00839960: 696e 6700 6d5f 666f 726d 6174 496d 706c ing.m_formatImpl
27 00839970: 0028 003b 2000 2900 5361 746f 7368 6900 .(.; .).Satoshi.
28-00839980: 7630 2e32 302e 3939 2e30 2d32 3364 3361 v0.20.99.0-23d3a
29-00839990: 6537 6163 0000 0000 0000 0000 0000 0000 e7ac............
30+00839980: 7630 2e32 302e 3939 2e30 2d30 3330 3234 v0.20.99.0-03024
31+00839990: 3030 3036 0000 0000 0000 0000 0000 0000 0006............
32 008399a0: 6261 7369 635f 7374 7269 6e67 3a3a 6174 basic_string::at
33 008399b0: 3a20 5f5f 6e20 2877 6869 6368 2069 7320 : __n (which is
34 008399c0: 257a 7529 203e 3d20 7468 6973 2d3e 7369 %zu) >= this->si
35 008399d0: 7a65 2829 2028 7768 6963 6820 6973 2025 ze() (which is %
36 008399e0: 7a75 2900 0000 0000 0000 0000 0000 0000 zu).............
37 008399f0: 6765 6e65 7269 6300 7379 7374 656d 004d generic.system.M
38 00839a00: 6573 7361 6765 2074 6578 7420 756e 6176 essage text unav
39@@ -616154,15 +616154,15 @@
40 00966d90: 0000 0000 0000 0000 0000 0000 0000 0000 ................
41 00966da0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
42 00966db0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
43 00966dc0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
44 00966dd0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
45 00966de0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
46 00966df0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
47-00966e00: 0000 0000 9725 525f 0000 0000 cc71 9700 .....%R_.....q..
48+00966e00: 0000 0000 0d40 535f 0000 0000 cc71 9700 .....@S_.....q..
49 00966e10: 0100 0000 2a00 0000 2a00 0000 2870 9700 ....*...*...(p..
50 00966e20: d070 9700 7871 9700 1073 4100 2072 4100 .p..xq...sA. rA.
51 00966e30: 6074 4100 60b2 7d00 a072 4100 a06a 4100 `tA.`.}..rA..jA.
52 00966e40: c06a 4100 6073 4100 606a 4100 f090 4100 .jA.`sA.`jA...A.
53 00966e50: f074 4100 9074 4100 d087 4100 108a 4100 .tA..tA...A...A.
54 00966e60: 108e 4100 1091 4100 f085 4100 e087 4100 ..A...A...A...A.
55 00966e70: 0076 4100 3079 4100 208a 4100 208e 4100 .vA.0yA. .A. .A.