NSS/Build System
< NSS
Jump to navigation
Jump to search
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
- Build NSPR
mkdir nspr-build && cd nspr-build
../nspr/configure
(with--enable-64bit
on a 64-bit system)make</make>
- Build NSS
cd ../nss
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
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