NSS/Build System

< NSS
Revision as of 13:50, 22 August 2016 by Ms2ger (talk | contribs) (Fix typo)

Prerequisites to building with gyp

  • a recent version of gyp and ninja.
  • a build environment with pkg-config, make, configure
  • the NSPR source
  • the NSS source

Steps to build with gyp

  1. Build NSPR
    1. mkdir nspr-build && cd nspr-build
    2. ../nspr/configure (with --enable-64bit on a 64-bit system)
    3. make
  2. Build NSS
    1. cd ../nss
    2. PKG_CONFIG_PATH=/path/to/nspr-build/config gyp -f ninja -Dnspr_cflags='-I/path/to/nspr-build/dist/include/nspr' -Dnspr_libs='-L/path/to/nspr-build/dist/lib -lplds4 -lplc4 -lnspr4' --depth=. nss.gyp
    3. ninja -C out/Debug/

Build Options

  • 32-bit builds on 64-bit machines: -Dtarget_arch=ia32
  • disable_tests
  • disable_dbm
  • disable_libpkix
  • ssl_enable_zlib
  • mozilla_client