mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-24 12:36:01 -07:00
Add nativeclient-x86.sh
This commit is contained in:
parent
00e156198a
commit
a6139c6b20
@ -13,4 +13,5 @@ EXTRA_DIST = \
|
|||||||
msys2-win32.sh \
|
msys2-win32.sh \
|
||||||
msys2-win64.sh \
|
msys2-win64.sh \
|
||||||
nativeclient-pnacl.sh \
|
nativeclient-pnacl.sh \
|
||||||
|
nativeclient-x86.sh \
|
||||||
nativeclient-x86_64.sh
|
nativeclient-x86_64.sh
|
||||||
|
19
dist-build/nativeclient-x86.sh
Executable file
19
dist-build/nativeclient-x86.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user