summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorMartin Thomson <mt@lowentropy.net>2019-04-29 15:27:25 +1000
committerMartin Thomson <mt@lowentropy.net>2019-04-29 15:27:25 +1000
commit6b580f637d3bedd098b0ab8fd0b3920aa5b9dd4e (patch)
tree73e9d674bfc59b3c35c16cb48f982fb2666a1a9a /build.sh
parent34c4c8d461cd9c4bcb970cbfb6d3b1bc4cebcc07 (diff)
downloadnss-hg-6b580f637d3bedd098b0ab8fd0b3920aa5b9dd4e.tar.gz
Bug 1543545 - Option to produce static libraries, r=kevinjacobs
Summary: The fine folks in application services would like to use NSS, but would greatly prefer static linking. Part of that is driven by iOS constraints on performance and a possible rejection from the store for dynamic linking (NSS dynamically loads softoken). This provides a build option that produces a fully statically linked set of libraries. Reviewers: KevinJacobs Tags: #secure-revision Bug #: 1543545 Differential Revision: https://phabricator.services.mozilla.com/D29303
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 66f598181..5501fe747 100755
--- a/build.sh
+++ b/build.sh
@@ -94,7 +94,8 @@ while [ $# -gt 0 ]; do
--sancov=?*) enable_sancov "${1#*=}" ;;
--emit-llvm) gyp_params+=(-Demit_llvm=1 -Dsign_libs=0) ;;
--no-zdefs) gyp_params+=(-Dno_zdefs=1) ;;
- --test) gyp_params+=(-Dtest_build=1) ;;
+ --test) gyp_params+=(-Dtest_build=1 -Dstatic_libs=1) ;;
+ --static) gyp_params+=(-Dstatic_libs=1) ;;
--ct-verif) gyp_params+=(-Dct_verif=1) ;;
--nspr) nspr_clean; rebuild_nspr=1 ;;
--with-nspr=?*) set_nspr_path "${1#*=}"; no_local_nspr=1 ;;