diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2021-06-15 16:38:01 +0200 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2021-06-16 10:41:24 +0200 |
commit | fc0eca31b33f87882e2aa329a3746d4e08af1985 (patch) | |
tree | a37dd4539476c1fa1e89c675d68ba6421b8e1a52 /src/netaddress.cpp | |
parent | eb63b1db2c4d2877a10fce391cf2c0c60b6210f3 (diff) |
fuzz: fix fuzz binary linking order
We encountered a linking error when attempting to include external_signer_scriptpubkeyman.cpp when configured with --disable-external-signer.
Everywhere else we have LIBBITCOIN_WALLET, it is always before LIBBITCOIN_COMMON. But if you go up to where FUZZ_SUITE_LD_COMMON is first set, you see that we will end up having LIBBITCOIN_COMMON set before LIBBITCOIN_WALLET which means that the linker will have problems linking things common things that the wallet uses. Because the order is correct for the other targets, we only see a linker error for test/fuzz/fuzz.
In this diff, LIBTEST_UTIL and LIBTEST_FUZZ are moved to the top because they include LIBBITCOIN_SERVER and LIBBITCOIN_COMMON. LIBBITCOIN_SERVER always needs to be the first item in the linker order since it has the most dependencies.
The makefiles for making the fuzz and test binaries should be revisited so that the linking order is made consistent with the rest of the code and to avoid other linker order issues that may crop up in the future.
Co-Authored-By: Andrew Chow <achow101-github@achow101.com>
Diffstat (limited to 'src/netaddress.cpp')
0 files changed, 0 insertions, 0 deletions