Home | History | Annotate | Line # | Download | only in dist-build
      1  1.1  riastrad #! /bin/sh
      2  1.1  riastrad 
      3  1.1  riastrad export NACL_SDK_ROOT=${NACL_SDK_ROOT-"/opt/nacl_sdk/pepper_49"}
      4  1.1  riastrad export NACL_TOOLCHAIN=${NACL_TOOLCHAIN-"${NACL_SDK_ROOT}/toolchain/mac_x86_glibc"}
      5  1.1  riastrad export NACL_BIN=${NACL_BIN-"${NACL_TOOLCHAIN}/bin"}
      6  1.1  riastrad export PREFIX="$(pwd)/libsodium-nativeclient-x86"
      7  1.1  riastrad export PATH="${NACL_BIN}:$PATH"
      8  1.1  riastrad export CFLAGS="-O3 -fomit-frame-pointer -fforce-addr"
      9  1.1  riastrad 
     10  1.1  riastrad mkdir -p $PREFIX || exit 1
     11  1.1  riastrad 
     12  1.1  riastrad make distclean > /dev/null
     13  1.1  riastrad 
     14  1.1  riastrad ./configure --enable-minimal \
     15  1.1  riastrad             --host=i686-nacl \
     16  1.1  riastrad             --disable-ssp --without-pthreads \
     17  1.1  riastrad             --prefix="$PREFIX" || exit 1
     18  1.1  riastrad 
     19  1.1  riastrad make -j3 check && make -j3 install || exit 1
     20