cd depends make cd .. ./autogen.sh ./configure --enable-glibc-back-compat --prefix=`pwd`/depends/x86_64-pc-linux-gnu --disable-shared LDFLAGS="-static-libstdc++" make STATIC=all
//following config as backup, don't see other errors now. if has following problem, not encountered so far: ./bitcoind: /lib64/libc.so.6: version `GLIBC_2.15' not found (required by ./bitcoind) ./bitcoind: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./bitcoind) Answer: ./configure --enable-glibc-back-compat --prefix=`pwd`/depends/x86_64-pc-linux-gnu LDFLAGS="-static-libstdc++"
cross compile for win64/32
if want to compile win32 version just need change x86_64-w64-mingw32
for mac cross build sudo apt-get install curl librsvg2-bin libtiff-tools bsdmainutils cmake imagemagick libcap-dev libz-dev libbz2-dev python-setuptools
need SDKs of Xcode_7.3.1.dmg hdiutil attach Xcode_7.3.1.dmg tar -C /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ -czf MacOSX10.11.sdk.tar.gz MacOSX10.11.sdk unpack to depends/SDKs/MacOSX10.11.sdk
cd depends make HOST=x86_64-apple-darwin11 cd .. ./autogen.sh ./configure --prefix=`pwd`/depends/x86_64-apple-darwin11 --disable-shared make STATIC=all make deploy