diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2020-01-27 15:44:57 +0100 |
---|---|---|
committer | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2020-01-27 15:44:57 +0100 |
commit | ecea393aa412fbc1b14f2d1ad05073428a15a0ba (patch) | |
tree | ac18b4c3f50d5584e3d5503638d48421726af9a6 /lib/freebl/freebl.gyp | |
parent | 2053e955f5f5c43707d3657a0ecca95b23cde590 (diff) | |
download | nss-hg-ecea393aa412fbc1b14f2d1ad05073428a15a0ba.tar.gz |
Bug 1608151 - Introduce NSS_DISABLE_ALTIVEC and disable_altivec r=jcj
At the moment NSS assumes that every PowerPC64 architecture supports
Altivec but it's not true and this leads to build failure. So add
NSS_DISABLE_ALTIVEC environment variable(and disable_altivec for
gyp) to disable Altivec extension on PowerPC build that don't support
Altivec.
Diffstat (limited to 'lib/freebl/freebl.gyp')
-rw-r--r-- | lib/freebl/freebl.gyp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/freebl/freebl.gyp b/lib/freebl/freebl.gyp index d01531ad1..73eb84202 100644 --- a/lib/freebl/freebl.gyp +++ b/lib/freebl/freebl.gyp @@ -274,11 +274,16 @@ 'gcm-aes-aarch64_c_lib', ], }], - [ 'target_arch=="ppc64le"', { + [ 'disable_altivec==0 and (target_arch=="ppc64" or target_arch=="ppc64le")', { 'dependencies': [ 'gcm-aes-ppc_c_lib', ], }], + [ 'disable_altivec==1 and (target_arch=="ppc64" or target_arch=="ppc64le")', { + 'defines!': [ + 'NSS_DISABLE_ALTIVEC', + ], + }], [ 'OS=="linux"', { 'defines!': [ 'FREEBL_NO_DEPEND', @@ -330,11 +335,16 @@ 'gcm-aes-aarch64_c_lib', ], }], - [ 'target_arch=="ppc64" or target_arch=="ppc64le"', { + [ 'disable_altivec==0 and (target_arch=="ppc64" or target_arch=="ppc64le")', { 'dependencies': [ 'gcm-aes-ppc_c_lib', ], }], + [ 'disable_altivec==1 and (target_arch=="ppc64" or target_arch=="ppc64le")', { + 'defines!': [ + 'NSS_DISABLE_ALTIVEC', + ], + }], [ 'OS!="linux"', { 'conditions': [ [ 'moz_fold_libs==0', { |