Compare commits
3 Commits
master
...
v1.0.9-mac
Author | SHA1 | Date |
---|---|---|
David Mercer | 36cd4ad061 | 7 years ago |
David Mercer | 75c4fa86b3 | 7 years ago |
David Mercer | 41ecf512f6 | 7 years ago |
15 changed files with 140 additions and 92 deletions
@ -0,0 +1,50 @@ |
|||
#!/bin/bash |
|||
export CC=gcc-5 |
|||
export CXX=g++-5 |
|||
export LIBTOOL=libtool |
|||
export AR=ar |
|||
export RANLIB=ranlib |
|||
export STRIP=strip |
|||
export OTOOL=otool |
|||
export NM=nm |
|||
|
|||
set -eu -o pipefail |
|||
|
|||
if [ "x$*" = 'x--help' ] |
|||
then |
|||
cat <<EOF |
|||
Usage: |
|||
|
|||
$0 --help |
|||
Show this help message and exit. |
|||
|
|||
$0 [ --enable-lcov ] [ MAKEARGS... ] |
|||
Build Zcash and most of its transitive dependencies from |
|||
source. MAKEARGS are applied to both dependencies and Zcash itself. If |
|||
--enable-lcov is passed, Zcash is configured to add coverage |
|||
instrumentation, thus enabling "make cov" to work. |
|||
EOF |
|||
exit 0 |
|||
fi |
|||
|
|||
# If --enable-lcov is the first argument, enable lcov coverage support: |
|||
LCOV_ARG='' |
|||
HARDENING_ARG='--disable-hardening' |
|||
if [ "x${1:-}" = 'x--enable-lcov' ] |
|||
then |
|||
LCOV_ARG='--enable-lcov' |
|||
HARDENING_ARG='--disable-hardening' |
|||
shift |
|||
fi |
|||
|
|||
TRIPLET=`./depends/config.guess` |
|||
PREFIX="$(pwd)/depends/$TRIPLET" |
|||
|
|||
make "$@" -C ./depends/ V=1 NO_QT=1 |
|||
|
|||
./autogen.sh |
|||
CPPFLAGS="-I$PREFIX/include -arch x86_64" LDFLAGS="-L$PREFIX/lib -arch x86_64 -Wl,-no_pie" \ |
|||
CXXFLAGS='-arch x86_64 -I/usr/local/Cellar/gcc5/5.4.0/include/c++/5.4.0 -I$PREFIX/include -fwrapv -fno-strict-aliasing -Werror -g -Wl,-undefined -Wl,dynamic_lookup' \ |
|||
./configure --prefix="${PREFIX}" --with-gui=no "$HARDENING_ARG" "$LCOV_ARG" --disable-rust --disable-proton |
|||
|
|||
make "$@" V=1 NO_GTEST=1 STATIC=1 |
Loading…
Reference in new issue