Sha256: 2550a893d4375e4ae4aaa812da993a1d9af9b413398df41b9ff5f4304e7aa468

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

#! /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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rbnacl-libsodium-1.0.6 vendor/libsodium/dist-build/osx.sh
rbnacl-libsodium-1.0.5 vendor/libsodium/dist-build/osx.sh
rbnacl-libsodium-1.0.4 vendor/libsodium/dist-build/osx.sh
rbnacl-libsodium-1.0.3 vendor/libsodium/dist-build/osx.sh