The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/libsodium/dist-build/osx.sh

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #! /bin/sh
    2 
    3 export PREFIX="$(pwd)/libsodium-osx"
    4 export OSX_VERSION_MIN=${OSX_VERSION_MIN-"10.8"}
    5 export OSX_CPU_ARCH=${OSX_CPU_ARCH-"core2"}
    6 
    7 mkdir -p $PREFIX || exit 1
    8 
    9 export CFLAGS="-arch x86_64 -mmacosx-version-min=${OSX_VERSION_MIN} -march=${OSX_CPU_ARCH} -O2 -g"
   10 export LDFLAGS="-arch x86_64 -mmacosx-version-min=${OSX_VERSION_MIN} -march=${OSX_CPU_ARCH}"
   11 
   12 make distclean > /dev/null
   13 
   14 if [ -z "$LIBSODIUM_FULL_BUILD" ]; then
   15   export LIBSODIUM_ENABLE_MINIMAL_FLAG="--enable-minimal"
   16 else
   17   export LIBSODIUM_ENABLE_MINIMAL_FLAG=""
   18 fi
   19 
   20 ./configure ${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
   21             --prefix="$PREFIX" || exit 1
   22 
   23 
   24 NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
   25 PROCESSORS=${NPROCESSORS:-3}
   26 
   27 make -j${PROCESSORS} check && make -j${PROCESSORS} install || exit 1
   28 
   29 # Cleanup
   30 make distclean > /dev/null

Cache object: fd27af29acacb3b64c8ac8c8afbf2348


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.