-Linux)
- if [ -n "${HOST:-}" ]; then
- # Needed for cross-compilation for 32-bit targets.
- export CPPFLAGS='-D_FILE_OFFSET_BITS=64'
- fi
- ;;
-
-MINGW*)
- # No-op.
- sudo() { "$@"; }
- ;;
-
-Darwin)
- nproc() { sysctl -n hw.ncpu; }
- gcrypt=$(brew --prefix libgcrypt)
- openssl=$(brew --prefix openssl)
- export CPPFLAGS="-I/usr/local/include -I$gcrypt/include -I$openssl/include -I$gcrypt/include"
- ;;