#! /bin/bash
set -e
set -x

NPROC=`sysctl -n hw.physicalcpu`

for i in $( dirname ${BASH_SOURCE[0]} )/build_targets/*
do
  source ${i}

  cd depends
  make HOST=$target_host NO_QT=1 NO_UPNP=1 -j $NPROC
  cd ..

  mkdir -p build/${target_host}
  cd build/${target_host}
  ../../autogen.sh
  ../../configure --prefix=$PWD/../../depends/$target_host --host=$target_host --disable-bench --enable-experimental-asm --disable-tests --disable-man --disable-zmq --without-utils --without-daemon --with-objc-libs --with-qrencode
  make -j $NPROC
  cd ../..
done

#! /bin/bash
set -e
set -x

NPROC=`sysctl -n hw.physicalcpu`

export CXXFLAGS="-O3"
export CFLAGS=${CXXFLAGS}

for i in $( dirname ${BASH_SOURCE[0]} )/build_targets/*
do
  source ${i}

  cd depends
  make HOST=$target_host NO_QT=1 NO_UPNP=1 -j $NPROC
  cd ..

  mkdir -p build/${target_host}
  cd build/${target_host}
  ../../autogen.sh
  ../../configure --prefix=$PWD/../../depends/$target_host --host=$target_host --disable-bench --enable-experimental-asm --disable-tests --disable-man --disable-zmq --without-utils --without-daemon --with-objc-libs --with-qrencode
  make -j $NPROC
  cd ../..
done

Add -O3 flag to iOS builds to properly take advantage of intrinsic support.
CORE: Add -O3 flag to iOS builds to properly take advantage of intrinsic support.
