From a6139c6b204fb586285372003f7db0a9418ad8c8 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 30 Apr 2016 14:07:50 +0200 Subject: [PATCH] Add nativeclient-x86.sh --- dist-build/Makefile.am | 1 + dist-build/nativeclient-x86.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 dist-build/nativeclient-x86.sh diff --git a/dist-build/Makefile.am b/dist-build/Makefile.am index f48c6efd..3d0a0e63 100644 --- a/dist-build/Makefile.am +++ b/dist-build/Makefile.am @@ -13,4 +13,5 @@ EXTRA_DIST = \ msys2-win32.sh \ msys2-win64.sh \ nativeclient-pnacl.sh \ + nativeclient-x86.sh \ nativeclient-x86_64.sh diff --git a/dist-build/nativeclient-x86.sh b/dist-build/nativeclient-x86.sh new file mode 100755 index 00000000..2db1836d --- /dev/null +++ b/dist-build/nativeclient-x86.sh @@ -0,0 +1,19 @@ +#! /bin/sh + +export NACL_SDK_ROOT=${NACL_SDK_ROOT-"/opt/nacl_sdk/pepper_49"} +export NACL_TOOLCHAIN=${NACL_TOOLCHAIN-"${NACL_SDK_ROOT}/toolchain/mac_x86_glibc"} +export NACL_BIN=${NACL_BIN-"${NACL_TOOLCHAIN}/bin"} +export PREFIX="$(pwd)/libsodium-nativeclient-x86" +export PATH="${NACL_BIN}:$PATH" +export CFLAGS="-O3 -fomit-frame-pointer -fforce-addr" + +mkdir -p $PREFIX || exit 1 + +make distclean > /dev/null + +./configure --enable-minimal \ + --host=i686-nacl \ + --disable-ssp --without-pthreads \ + --prefix="$PREFIX" || exit 1 + +make -j3 check && make -j3 install || exit 1