summaryrefslogtreecommitdiff
path: root/coreconf/config.gypi
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 /coreconf/config.gypi
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 'coreconf/config.gypi')
-rw-r--r--coreconf/config.gypi9
1 files changed, 8 insertions, 1 deletions
diff --git a/coreconf/config.gypi b/coreconf/config.gypi
index 761393d54..1dde15fe3 100644
--- a/coreconf/config.gypi
+++ b/coreconf/config.gypi
@@ -99,6 +99,7 @@
'moz_folded_library_name%': '',
'sanitizer_flags%': 0,
'test_build%': 0,
+ 'static_libs%': 0,
'no_zdefs%': 0,
'fuzz%': 0,
'fuzz_tls%': 0,
@@ -122,6 +123,7 @@
'variables': {
'mapfile%': '',
'test_build%': 0,
+ 'static_libs%': 0,
'debug_optimization_level%': '0',
'release_optimization_level%': '2',
},
@@ -142,6 +144,11 @@
'NSS_NO_INIT_SUPPORT',
],
}],
+ [ 'static_libs==1', {
+ 'variables': {
+ 'standalone_static_library': '1',
+ },
+ }],
[ 'OS!="android" and OS!="mac" and OS!="win"', {
'libraries': [
'-lpthread',
@@ -257,7 +264,7 @@
}],
}]
],
- }, 'test_build==1 and _type=="shared_library"', {
+ }, 'static_libs==1 and _type=="shared_library"', {
# When linking a shared lib against a static one, XCode doesn't
# export the latter's symbols by default. -all_load fixes that.
'xcode_settings': {