]> Git Repo - VerusCoin.git/blame - zcutil/build-mac.sh
use Ubuntu builder
[VerusCoin.git] / zcutil / build-mac.sh
CommitLineData
e891d64b 1#!/bin/bash
ba278b61
AD
2export CC=gcc-8
3export CXX=g++-8
e891d64b
JB
4export LIBTOOL=libtool
5export AR=ar
6export RANLIB=ranlib
7export STRIP=strip
8export OTOOL=otool
9export NM=nm
10
11set -eu -o pipefail
12
13if [ "x$*" = 'x--help' ]
14then
15 cat <<EOF
16Usage:
17
18$0 --help
19 Show this help message and exit.
20
21$0 [ --enable-lcov ] [ MAKEARGS... ]
22 Build Zcash and most of its transitive dependencies from
23 source. MAKEARGS are applied to both dependencies and Zcash itself. If
24 --enable-lcov is passed, Zcash is configured to add coverage
25 instrumentation, thus enabling "make cov" to work.
26EOF
27 exit 0
28fi
29
30# If --enable-lcov is the first argument, enable lcov coverage support:
31LCOV_ARG=''
32HARDENING_ARG='--disable-hardening'
33if [ "x${1:-}" = 'x--enable-lcov' ]
34then
35 LCOV_ARG='--enable-lcov'
36 HARDENING_ARG='--disable-hardening'
37 shift
38fi
39
40TRIPLET=`./depends/config.guess`
41PREFIX="$(pwd)/depends/$TRIPLET"
42
a59295a2 43make "$@" -C ./depends/ V=1 NO_QT=1 NO_PROTON=1
e891d64b
JB
44
45./autogen.sh
11793048 46CPPFLAGS="-I$PREFIX/include -arch x86_64" LDFLAGS="-L$PREFIX/lib -arch x86_64 -Wl,-no_pie -g" \
e9250604 47CXXFLAGS='-arch x86_64 -I/usr/local/Cellar/gcc\@8/8.4.0_1/include/c++/8.4.0/ -I$PREFIX/include -I$PREFIX/lib -fwrapv -fno-strict-aliasing -Werror -g -Wl,-undefined -Wl,dynamic_lookup -g' \
e891d64b
JB
48./configure --prefix="${PREFIX}" --with-gui=no "$HARDENING_ARG" "$LCOV_ARG"
49
50make "$@" V=1 NO_GTEST=1 STATIC=1
This page took 0.07348 seconds and 4 git commands to generate.