aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-09-25 11:48:32 +0800
committerGitHub <noreply@github.com>2018-09-25 11:48:32 +0800
commitca935bdbac190766f29fb73433a82ee5806bc8f9 (patch)
tree13cefccaaa52cf5aa3c62f590ed7bae7ffdd3f17 /bin
parent01a6b236b82391adfedad1498f3497a70d4cf948 (diff)
downloaddexon-consensus-ca935bdbac190766f29fb73433a82ee5806bc8f9.tar
dexon-consensus-ca935bdbac190766f29fb73433a82ee5806bc8f9.tar.gz
dexon-consensus-ca935bdbac190766f29fb73433a82ee5806bc8f9.tar.bz2
dexon-consensus-ca935bdbac190766f29fb73433a82ee5806bc8f9.tar.lz
dexon-consensus-ca935bdbac190766f29fb73433a82ee5806bc8f9.tar.xz
dexon-consensus-ca935bdbac190766f29fb73433a82ee5806bc8f9.tar.zst
dexon-consensus-ca935bdbac190766f29fb73433a82ee5806bc8f9.zip
Use static linking for libbls (#132)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/install_dkg_dep.sh11
-rw-r--r--bin/patches/0001-common.mk-remove-hard-coded-CFLAGS-and-LDFLAGS.patch26
2 files changed, 1 insertions, 36 deletions
diff --git a/bin/install_dkg_dep.sh b/bin/install_dkg_dep.sh
index af5e83e..56ac6b3 100755
--- a/bin/install_dkg_dep.sh
+++ b/bin/install_dkg_dep.sh
@@ -13,17 +13,8 @@ if [ ! -d .dep/dkg ]; then
git clone --depth 1 --single-branch -b dev git://github.com/Spiderpowa/bls.git &
git clone --depth 1 git://github.com/herumi/mcl.git &
wait
- if [ "$(uname -o)" = "Darwin" ] && [ "$(brew --prefix)" != "/usr/local" ]; then
- cd mcl
- git am ../../../bin/patches/0001-common.mk-remove-hard-coded-CFLAGS-and-LDFLAGS.patch
- cd ..
- fi
cd bls
make test_go -j
cd ../../../
fi
-cp -r .dep/dkg/* \
- vendor/github.com/Spiderpowa
-mkdir -p lib
-cd lib
-ln -sf ../vendor/github.com/Spiderpowa/bls/lib/* .
+cp -r .dep/dkg/* vendor/github.com/Spiderpowa
diff --git a/bin/patches/0001-common.mk-remove-hard-coded-CFLAGS-and-LDFLAGS.patch b/bin/patches/0001-common.mk-remove-hard-coded-CFLAGS-and-LDFLAGS.patch
deleted file mode 100644
index a76daa7..0000000
--- a/bin/patches/0001-common.mk-remove-hard-coded-CFLAGS-and-LDFLAGS.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 8fbe73cbbf524cfa6955a10a6617f02161ffa33b Mon Sep 17 00:00:00 2001
-From: Wei-Ning Huang <w@cobinhood.com>
-Date: Fri, 21 Sep 2018 18:12:20 +0800
-Subject: [PATCH] common.mk: remove hard coded CFLAGS and LDFLAGS
-
----
- common.mk | 3 ---
- 1 file changed, 3 deletions(-)
-
-diff --git a/common.mk b/common.mk
-index 3a82835..9b42060 100644
---- a/common.mk
-+++ b/common.mk
-@@ -14,9 +14,6 @@ ifeq ($(UNAME_S),Darwin)
- OS=mac
- ARCH=x86_64
- LIB_SUF=dylib
-- OPENSSL_DIR?=/usr/local/opt/openssl
-- CFLAGS+=-I$(OPENSSL_DIR)/include
-- LDFLAGS+=-L$(OPENSSL_DIR)/lib
- else
- LIB_SUF=so
- endif
---
-2.17.1 (Apple Git-112)
-