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/nativeclient-x86.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 NACL_SDK_ROOT=${NACL_SDK_ROOT-"/opt/nacl_sdk/pepper_49"}
    4 export NACL_TOOLCHAIN=${NACL_TOOLCHAIN-"${NACL_SDK_ROOT}/toolchain/mac_x86_glibc"}
    5 export NACL_BIN=${NACL_BIN-"${NACL_TOOLCHAIN}/bin"}
    6 export PREFIX="$(pwd)/libsodium-nativeclient-x86"
    7 export PATH="${NACL_BIN}:$PATH"
    8 export CFLAGS="-O3 -fomit-frame-pointer -fforce-addr"
    9 
   10 mkdir -p $PREFIX || exit 1
   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 
   21 ./configure ${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
   22             --host=i686-nacl \
   23             --disable-ssp --without-pthreads \
   24             --prefix="$PREFIX" || exit 1
   25 
   26 NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
   27 PROCESSORS=${NPROCESSORS:-3}
   28 
   29 make -j${PROCESSORS} check && make -j${PROCESSORS} install || exit 1

Cache object: 3adb97dc4a5cae39d9a94952b2b05aa6


[ 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.