From fba28f19754f62b5227650143d5441fc86d4c7d7 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 25 Apr 2018 21:33:33 +0200 Subject: Revert "Update NSS to 3.35-RTM" This reverts commit f1a0f0a56fdd0fc39f255174ce08c06b91c66c94. --- security/nss/lib/freebl/freebl.gyp | 72 ++++++++++---------------------------- 1 file changed, 19 insertions(+), 53 deletions(-) (limited to 'security/nss/lib/freebl/freebl.gyp') diff --git a/security/nss/lib/freebl/freebl.gyp b/security/nss/lib/freebl/freebl.gyp index 8b6a546e7..8c0d0dcd5 100644 --- a/security/nss/lib/freebl/freebl.gyp +++ b/security/nss/lib/freebl/freebl.gyp @@ -22,37 +22,6 @@ '-mssse3' ] }, - { - 'target_name': 'gcm-aes-x86_c_lib', - 'type': 'static_library', - 'sources': [ - 'gcm-x86.c', 'aes-x86.c' - ], - 'dependencies': [ - '<(DEPTH)/exports.gyp:nss_exports' - ], - # Enable isa option for pclmul and aes-ni; supported since gcc 4.4. - # This is only supported by x84/x64. It's not needed for Windows, - # unless clang-cl is used. - 'cflags_mozilla': [ - '-mpclmul', '-maes' - ], - 'conditions': [ - [ 'OS=="linux" or OS=="android" or OS=="dragonfly" or OS=="freebsd" or OS=="netbsd" or OS=="openbsd"', { - 'cflags': [ - '-mpclmul', '-maes' - ], - }], - # macOS build doesn't use cflags. - [ 'OS=="mac"', { - 'xcode_settings': { - 'OTHER_CFLAGS': [ - '-mpclmul', '-maes' - ], - }, - }] - ] - }, { 'target_name': 'freebl', 'type': 'static_library', @@ -76,11 +45,6 @@ '<(DEPTH)/exports.gyp:nss_exports', ], 'conditions': [ - [ 'target_arch=="ia32" or target_arch=="x64"', { - 'dependencies': [ - 'gcm-aes-x86_c_lib' - ], - }], [ 'OS=="linux"', { 'defines!': [ 'FREEBL_NO_DEPEND', @@ -112,11 +76,6 @@ '<(DEPTH)/exports.gyp:nss_exports', ], 'conditions': [ - [ 'target_arch=="ia32" or target_arch=="x64"', { - 'dependencies': [ - 'gcm-aes-x86_c_lib' - ] - }], [ 'OS!="linux" and OS!="android"', { 'conditions': [ [ 'moz_fold_libs==0', { @@ -183,8 +142,7 @@ 'target_defaults': { 'include_dirs': [ 'mpi', - 'ecl', - 'verified', + 'ecl' ], 'defines': [ 'SHLIB_SUFFIX=\"<(dll_suffix)\"', @@ -195,12 +153,19 @@ 'MP_API_COMPATIBLE' ], 'conditions': [ + [ 'target_arch=="ia32" or target_arch=="x64"', { + 'cflags_mozilla': [ + '-mpclmul', + '-maes', + ], + }], [ 'OS=="mac"', { 'xcode_settings': { # I'm not sure since when this is supported. # But I hope that doesn't matter. We also assume this is x86/x64. 'OTHER_CFLAGS': [ - '-std=gnu99', + '-mpclmul', + '-maes', ], }, }], @@ -256,24 +221,17 @@ 'HAVE_INT128_SUPPORT', ], }, { - 'defines': [ - 'KRML_NOUINT128', + 'sources': [ + 'ecl/uint128.c', ], }], ], - }, { - 'defines': [ - 'KRML_NOUINT128', - ], }], [ 'OS=="linux"', { 'defines': [ 'FREEBL_LOWHASH', 'FREEBL_NO_DEPEND', ], - 'cflags': [ - '-std=gnu99', - ], }], [ 'OS=="linux" or OS=="android"', { 'conditions': [ @@ -301,6 +259,14 @@ 'MP_USE_UINT_DIGIT', ], }], + [ 'target_arch=="ia32" or target_arch=="x64"', { + 'cflags': [ + # enable isa option for pclmul am aes-ni; supported since gcc 4.4 + # This is only support by x84/x64. It's not needed for Windows. + '-mpclmul', + '-maes', + ], + }], [ 'target_arch=="arm"', { 'defines': [ 'MP_ASSEMBLY_MULTIPLY', -- cgit v1.2.3