From 76d26f64585b975710ea3847db03cdbb79646d86 Mon Sep 17 00:00:00 2001 From: ca333 Date: Tue, 9 May 2017 04:31:02 +0200 Subject: [PATCH 1/2] add libcurl build recipe for static linking --- depends/packages/libcurl.mk | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 depends/packages/libcurl.mk diff --git a/depends/packages/libcurl.mk b/depends/packages/libcurl.mk new file mode 100644 index 000000000..9e8577bb5 --- /dev/null +++ b/depends/packages/libcurl.mk @@ -0,0 +1,23 @@ +package=libcurl +$(package)_version=7.54.0 +$(package)_download_path=https://curl.haxx.se/download +$(package)_file_name=curl-$($(package)_version).tar.gz +$(package)_sha256_hash=a84b635941c74e26cce69dd817489bec687eb1f230e7d1897fc5b5f108b59adf +$(package)_config_opts=--disable-shared --enable-static --prefix=$(host_prefix) +$(package)_cflags= +$(package)_conf_tool=./configure + +define $(package)_set_vars +endef + +define $(package)_config_cmds + $($(package)_conf_tool) $($(package)_config_opts) +endef + +define $(package)_build_cmds + $(MAKE) +endef + +define $(package)_stage_cmds + $(MAKE) DESTDIR=$($(package)_staging_dir) install +endef From f4b532076cee930c05fb3de2a018af9f924cc784 Mon Sep 17 00:00:00 2001 From: ca333 Date: Tue, 9 May 2017 04:35:33 +0200 Subject: [PATCH 2/2] statify libcurl --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index b6f4f2e83..ce0bd6cd3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -23,7 +23,7 @@ BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BOOST_CPPFLAGS) $(LEVELDB_CPP BITCOIN_INCLUDES += -I$(srcdir)/secp256k1/include BITCOIN_INCLUDES += -I$(srcdir)/univalue/include -LIBBITCOIN_SERVER=libbitcoin_server.a +LIBBITCOIN_SERVER=libbitcoin_server.a -lcurl LIBBITCOIN_WALLET=libbitcoin_wallet.a LIBBITCOIN_COMMON=libbitcoin_common.a LIBBITCOIN_CLI=libbitcoin_cli.a