Statically linking libcrypto and libssl from bitcoin instead of using the System's version.

This commit is contained in:
Chris Kleeschulte 2015-10-16 14:17:00 -04:00
parent 8784a289b6
commit 132821523b
2 changed files with 13 additions and 3 deletions

View File

@ -32,6 +32,8 @@ system="${cache_dir}"/depends/"${host}"/lib/libboost_system-mt.a
leveldb="${cache_dir}"/src/leveldb/libleveldb.a
memenv="${cache_dir}"/src/leveldb/libmemenv.a
libsecp256k1="${cache_dir}"/src/secp256k1/.libs/libsecp256k1.a
ssl="${cache_dir}"/depends/"${host}"/lib/libssl.a
crypto="${cache_dir}"/depends/"${host}"/lib/libcrypto.a
if test x"$1" = x'anl'; then
if [ "${platform}" != "darwin" ]; then
@ -63,6 +65,14 @@ if test -z "$1" -o x"$1" = x'system'; then
echo -n "${system}"
fi
if test -z "$1" -o x"$1" = x'ssl'; then
echo -n "${ssl}"
fi
if test -z "$1" -o x"$1" = x'crypto'; then
echo -n "${crypto}"
fi
if test -z "$1" -o x"$1" = x'chrono'; then
echo -n "${chrono}"
fi

View File

@ -48,8 +48,8 @@
"<!(./bin/variables.sh memenv)",
"<!(./bin/variables.sh bdb)",
"<!(./bin/variables.sh anl)",
"-lssl",
"-lcrypto"
"<!(./bin/variables.sh ssl)",
"<!(./bin/variables.sh crypto)"
],
"ldflags": [
"<!(./bin/variables.sh load_archive)"