#!/bin/sh -xeu # Set the BOOST_ADDRESS_MODEL of the Build Environment for BOOST BOOST_ADDRESS_MODEL=64 # Set the BOOST_ARCH_TYPE of the Build Environment for BOOST BOOST_ARCH_TYPE=x86_64 # Set the target os & arch type for OpenSSL SSL_ARCH_TYPE=linux-x86_64 #Start with a dir containing subdir 'distfiles' #(see below) and 'bitcoin' (turdatronic edition.) #Also an empty subdir, 'ourlibs'. ###################################### #Turds! #These must sit in distfiles dir. #Put in your favourites. I merely happened to have #these on hand. #For now, no checksum trap. Somebody add this? OPENSSL=openssl-1.0.1g BDB=db-4.8.30 BOOST=boost_1_52_0 ####################################### # DIST=./distfiles OURLIBS=$(realpath ./ourlibs) # export CC=gcc export CXX=g++ export LD=ld export CFLAGS=-I/usr/include export LDFLAGS=-L/usr/lib export PATH=$PATH:/usr/bin tar xfz $DIST/$OPENSSL.tar.gz; cd $OPENSSL; ./Configure --prefix=$OURLIBS $SSL_ARCH_TYPE no-shared && make && make install; cd ..; tar xfz $DIST/$BDB.tar.gz; cd $BDB/build_unix; ../dist/configure --enable-cxx --prefix=$OURLIBS && make && make install && cd ../..; tar xfz $DIST/$BOOST.tar.gz; cd $BOOST; echo "using gcc : $BOOST_ARCH_TYPE : $CXX ;" > tools/build/v2/user-config.jam; ./bootstrap.sh; ./bjam toolset=gcc address-model=$BOOST_ADDRESS_MODEL link=static -sNO_BZIP2=1 -sNO_ZLIB=1 -sNO_COMPRESSION=1; ./bjam toolset=gcc address-model=$BOOST_ADDRESS_MODEL link=static --prefix=$OURLIBS install; cd ..; export BOOST_INCLUDE_PATH=$OURLIBS/include export BDB_INCLUDE_PATH=$OURLIBS/include export OPENSSL_INCLUDE_PATH=$OURLIBS/include export BOOST_LIB_PATH=$OURLIBS/lib export BDB_LIB_PATH=$OURLIBS/lib export OPENSSL_LIB_PATH=$OURLIBS/lib cd bitcoin-v0_5_3_1/src; make LMODE=static LMODE2=static -f makefile.unix bitcoind strip bitcoind