mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-18 20:57:56 +00:00
63d5cec1c6
git subtree add --squash --prefix libsodium git@github.com:jedisct1/libsodium.git 1.0.13 git commit --amend (to rewrite this commit message)
20 lines
605 B
Bash
Executable File
20 lines
605 B
Bash
Executable File
#! /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_64"
|
|
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=x86_64-nacl \
|
|
--disable-ssp --without-pthreads \
|
|
--prefix="$PREFIX" || exit 1
|
|
|
|
make -j3 check && make -j3 install || exit 1
|