@@ -84,7 +84,7 @@ brew update
|
|||||||
brew upgrade
|
brew upgrade
|
||||||
brew tap discoteq/discoteq; brew install flock
|
brew tap discoteq/discoteq; brew install flock
|
||||||
brew install autoconf autogen automake
|
brew install autoconf autogen automake
|
||||||
brew install gcc@6
|
brew update && brew install gcc@8
|
||||||
brew install binutils
|
brew install binutils
|
||||||
brew install protobuf
|
brew install protobuf
|
||||||
brew install coreutils
|
brew install coreutils
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
build_darwin_CC = gcc-6
|
build_darwin_CC = gcc-8
|
||||||
build_darwin_CXX = g++-6
|
build_darwin_CXX = g++-8
|
||||||
build_darwin_AR: = $(shell xcrun -f ar)
|
build_darwin_AR: = $(shell xcrun -f ar)
|
||||||
build_darwin_RANLIB: = $(shell xcrun -f ranlib)
|
build_darwin_RANLIB: = $(shell xcrun -f ranlib)
|
||||||
build_darwin_STRIP: = $(shell xcrun -f strip)
|
build_darwin_STRIP: = $(shell xcrun -f strip)
|
||||||
@@ -10,8 +10,8 @@ build_darwin_SHA256SUM = shasum -a 256
|
|||||||
build_darwin_DOWNLOAD = curl --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -L -f -o
|
build_darwin_DOWNLOAD = curl --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -L -f -o
|
||||||
|
|
||||||
#darwin host on darwin builder. overrides darwin host preferences.
|
#darwin host on darwin builder. overrides darwin host preferences.
|
||||||
darwin_CC= gcc-6
|
darwin_CC= gcc-8
|
||||||
darwin_CXX= g++-6
|
darwin_CXX= g++-8
|
||||||
darwin_AR:=$(shell xcrun -f ar)
|
darwin_AR:=$(shell xcrun -f ar)
|
||||||
darwin_RANLIB:=$(shell xcrun -f ranlib)
|
darwin_RANLIB:=$(shell xcrun -f ranlib)
|
||||||
darwin_STRIP:=$(shell xcrun -f strip)
|
darwin_STRIP:=$(shell xcrun -f strip)
|
||||||
|
|||||||
@@ -599,11 +599,19 @@ if ENABLE_PROTON
|
|||||||
komodod_LDADD += $(LIBBITCOIN_PROTON) $(PROTON_LIBS)
|
komodod_LDADD += $(LIBBITCOIN_PROTON) $(PROTON_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# [+] Decker: use static linking for libstdc++.6.dylib, libgomp.1.dylib, libgcc_s.1.dylib
|
||||||
|
if TARGET_DARWIN
|
||||||
|
komodod_LDFLAGS += -static-libgcc
|
||||||
|
endif
|
||||||
|
|
||||||
# bitcoin-cli binary #
|
# bitcoin-cli binary #
|
||||||
komodo_cli_SOURCES = bitcoin-cli.cpp
|
komodo_cli_SOURCES = bitcoin-cli.cpp
|
||||||
komodo_cli_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(EVENT_CFLAGS)
|
komodo_cli_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(EVENT_CFLAGS)
|
||||||
komodo_cli_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
komodo_cli_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
||||||
komodo_cli_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
|
komodo_cli_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
|
||||||
|
if TARGET_DARWIN
|
||||||
|
komodo_cli_LDFLAGS += -static-libgcc
|
||||||
|
endif
|
||||||
|
|
||||||
# wallet-utility binary #
|
# wallet-utility binary #
|
||||||
if ENABLE_WALLET
|
if ENABLE_WALLET
|
||||||
|
|||||||
@@ -1056,7 +1056,7 @@ int32_t roundrobin_delay;
|
|||||||
arith_uint256 HASHTarget,HASHTarget_POW;
|
arith_uint256 HASHTarget,HASHTarget_POW;
|
||||||
|
|
||||||
// wait for peers to connect
|
// wait for peers to connect
|
||||||
int32_t waitForPeers(const CChainParams &chainparams)
|
void waitForPeers(const CChainParams &chainparams)
|
||||||
{
|
{
|
||||||
if (chainparams.MiningRequiresPeers())
|
if (chainparams.MiningRequiresPeers())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ const CScriptExt &CScriptExt::AddCheckLockTimeVerify(int64_t unlocktime) const
|
|||||||
*((CScript *)this) << OP_DROP;
|
*((CScript *)this) << OP_DROP;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// combined CLTV script and P2PKH
|
// combined CLTV script and P2PKH
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ cd $WD
|
|||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
CPPFLAGS="-I$PREFIX/include -arch x86_64" LDFLAGS="-L$PREFIX/lib -arch x86_64 -Wl,-no_pie" \
|
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/gcc\@6/6.4.0_2/include/c++/6.4.0/ -I$PREFIX/include -fwrapv -fno-strict-aliasing -Werror -g -Wl,-undefined -Wl,dynamic_lookup' \
|
CXXFLAGS='-arch x86_64 -I/usr/local/Cellar/gcc\@6/6.4.0_2/include/c++/6.4.0/ -I$PREFIX/include -fwrapv -fno-strict-aliasing -Wno-builtin-declaration-mismatch -Werror -g -Wl,-undefined -Wl,dynamic_lookup' \
|
||||||
./configure --prefix="${PREFIX}" --with-gui=no "$HARDENING_ARG" "$LCOV_ARG"
|
./configure --prefix="${PREFIX}" --with-gui=no "$HARDENING_ARG" "$LCOV_ARG"
|
||||||
|
|
||||||
make "$@" V=1 NO_GTEST=1 STATIC=1
|
make "$@" V=1 NO_GTEST=1 STATIC=1
|
||||||
|
|||||||
Reference in New Issue
Block a user