build: fix bitcoin-chainstate when libbitcoinkernel is static

Libtool is unable to calculate dependencies correctly so give it some help.
This commit is contained in:
Cory Fields 2023-02-22 20:31:55 +00:00
parent 9c253d2398
commit 545a74ef32

View File

@ -860,6 +860,10 @@ bitcoin_chainstate_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
# setting --{en,dis}able-shared.
bitcoin_chainstate_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(PTHREAD_FLAGS)
bitcoin_chainstate_LDADD = $(LIBBITCOINKERNEL)
# libtool is unable to calculate this indirect dependency, presumably because it's a subproject.
# libsecp256k1 only needs to be linked in when libbitcoinkernel is static.
bitcoin_chainstate_LDADD += $(LIBSECP256K1)
#
# bitcoinkernel library #