+ simple OSX build script
This commit is contained in:
parent
ffc98b37b9
commit
c5556527ea
@ -4,7 +4,7 @@
|
|||||||
# Configure for base system so simulator is covered
|
# Configure for base system so simulator is covered
|
||||||
#
|
#
|
||||||
# Step 2.
|
# Step 2.
|
||||||
# Make for iOS armv7, armv7s and arm64
|
# Make for iOS and iOS simulator
|
||||||
#
|
#
|
||||||
# Step 3.
|
# Step 3.
|
||||||
# Merge libs into final version for xcode import
|
# Merge libs into final version for xcode import
|
||||||
|
20
dist-build/osx.sh
Executable file
20
dist-build/osx.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
export PREFIX="$(pwd)/libsodium-osx"
|
||||||
|
export OSX_VERSION_MIN=${OSX_VERSION_MIN-"10.8"}
|
||||||
|
export OSX_CPU_ARCH=${OSX_CPU_ARCH-"core2"}
|
||||||
|
|
||||||
|
mkdir -p $PREFIX || exit 1
|
||||||
|
|
||||||
|
export CFLAGS="-arch x86_64 -mmacosx-version-min=${OSX_VERSION_MIN} -march=${OSX_CPU_ARCH} -O2 -g"
|
||||||
|
export LDFLAGS="-arch x86_64 -mmacosx-version-min=${OSX_VERSION_MIN} -march=${OSX_CPU_ARCH}"
|
||||||
|
|
||||||
|
make distclean > /dev/null
|
||||||
|
|
||||||
|
./configure --enable-minimal \
|
||||||
|
--prefix="$PREFIX" || exit 1
|
||||||
|
|
||||||
|
make -j3 check && make -j3 install || exit 1
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
make distclean > /dev/null
|
Loading…
Reference in New Issue
Block a user