diff options
| author | Cory Fields <[email protected]> | 2014-11-20 13:40:01 -0500 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2014-11-20 13:45:14 -0500 |
| commit | f618577029b0c575aeb88d60372f6bb5af4406e2 (patch) | |
| tree | 4571c98a995ebd326c673ef913ba7d5d3a37a5ce /src/Makefile.test.include | |
| parent | Merge pull request #5270 (diff) | |
| download | discoin-f618577029b0c575aeb88d60372f6bb5af4406e2.tar.xz discoin-f618577029b0c575aeb88d60372f6bb5af4406e2.zip | |
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.include | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 5fd2afe50..9e9f478d8 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) |