aboutsummaryrefslogtreecommitdiffstats
path: root/bin/install_dkg_dep.sh
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-09-18 13:07:38 +0800
committerGitHub <noreply@github.com>2018-09-18 13:07:38 +0800
commit476c759f5e2ea3949cf3aaf4e60ccc7e0439ee73 (patch)
tree3f9ac28632072fa8083c22347fb45cbf94da4831 /bin/install_dkg_dep.sh
parent81cf96477127a2da8843d544802027c7061a9c06 (diff)
downloaddexon-consensus-476c759f5e2ea3949cf3aaf4e60ccc7e0439ee73.tar
dexon-consensus-476c759f5e2ea3949cf3aaf4e60ccc7e0439ee73.tar.gz
dexon-consensus-476c759f5e2ea3949cf3aaf4e60ccc7e0439ee73.tar.bz2
dexon-consensus-476c759f5e2ea3949cf3aaf4e60ccc7e0439ee73.tar.lz
dexon-consensus-476c759f5e2ea3949cf3aaf4e60ccc7e0439ee73.tar.xz
dexon-consensus-476c759f5e2ea3949cf3aaf4e60ccc7e0439ee73.tar.zst
dexon-consensus-476c759f5e2ea3949cf3aaf4e60ccc7e0439ee73.zip
bin: allow non-root homebrew install to work (#113)
In order for non-root homebrew install to work, we need to setup some custom CFLAGS and LDFLAGS variables, we also need to patch the mcl library so we are able to build. A PR is sent to the mcl upstream, the local patch will be removed once the upstream PR is merged.
Diffstat (limited to 'bin/install_dkg_dep.sh')
-rwxr-xr-xbin/install_dkg_dep.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/install_dkg_dep.sh b/bin/install_dkg_dep.sh
index 7b6463f..9120941 100755
--- a/bin/install_dkg_dep.sh
+++ b/bin/install_dkg_dep.sh
@@ -13,6 +13,11 @@ if [ ! -d .dep/dkg ]; then
git clone --depth 1 git://github.com/herumi/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 ../../../