aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.test.include
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-11-20 13:40:01 -0500
committerCory Fields <cory-nospam-@coryfields.com>2014-11-20 13:45:14 -0500
commitf618577029b0c575aeb88d60372f6bb5af4406e2 (patch)
tree4571c98a995ebd326c673ef913ba7d5d3a37a5ce /src/Makefile.test.include
parent5c4dffd188bf82c1965871bdf013b18a61e3d7d0 (diff)
build: fix link error on some platforms. Fixes #5235
Some users may have libtool libs (.la) installed in their linker search paths. In this case, using -static-libtool-libs would try to link in .a's instead of shared libs. That would be harmless unless the .a was built in a way that would break linking, like non-fpic. What we really want is "-static" here. Despite its name, it's actually less aggressive than -static-libtool-libs. It causes only internal libs to be linked statically (libbitcoinconsensus is the one were'a after).
Diffstat (limited to 'src/Makefile.test.include')
-rw-r--r--src/Makefile.test.include2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include
index 5fd2afe50d..9e9f478d8f 100644
--- a/src/Makefile.test.include
+++ b/src/Makefile.test.include
@@ -86,7 +86,7 @@ test_test_bitcoin_LDADD += $(LIBBITCOIN_WALLET)
endif
test_test_bitcoin_LDADD += $(LIBBITCOIN_CONSENSUS) $(BDB_LIBS) $(SSL_LIBS) $(CRYPTO_LIBS) $(MINIUPNPC_LIBS)
-test_test_bitcoin_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static-libtool-libs
+test_test_bitcoin_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) -static
nodist_test_test_bitcoin_SOURCES = $(GENERATED_TEST_FILES)