Skip to content

Commit

Permalink
Bug 1350362 - Support building NSS in Firefox with MinGW on Linux, r=…
Browse files Browse the repository at this point in the history
…franziskus

--HG--
extra : amend_source : 5221cada253c3a1b84595f4920520a18c739a999
  • Loading branch information
tomrittervg committed May 11, 2017
1 parent 770f500 commit 02db64a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coreconf/config.gypi
Expand Up @@ -218,7 +218,7 @@
'-Wl,--version-script,<(INTERMEDIATE_DIR)/out.>(mapfile)',
],
}],
[ 'OS=="win"', {
[ 'cc_use_gnu_ld!=1 and OS=="win"', {
# On Windows, .def files are used directly as sources.
'sources': [
'>(mapfile)',
Expand Down
12 changes: 12 additions & 0 deletions lib/freebl/freebl.gyp
Expand Up @@ -174,6 +174,7 @@
'VCCLCompilerTool': {
#TODO: -Ox optimize flags
'PreprocessorDefinitions': [
# Should be copied to mingw defines below
'MP_IS_LITTLE_ENDIAN',
'NSS_BEVAND_ARCFOUR',
'MPI_AMD64',
Expand All @@ -185,6 +186,17 @@
},
},
}],
[ 'cc_use_gnu_ld==1 and OS=="win" and target_arch=="x64"', {
'defines': [
'MP_IS_LITTLE_ENDIAN',
'NSS_BEVAND_ARCFOUR',
'MPI_AMD64',
'MP_ASSEMBLY_MULTIPLY',
'NSS_USE_COMBA',
'USE_HW_AES',
'INTEL_GCM',
],
}],
[ 'OS!="win"', {
'conditions': [
[ 'target_arch=="x64" or target_arch=="arm64" or target_arch=="aarch64"', {
Expand Down
5 changes: 3 additions & 2 deletions lib/freebl/freebl_base.gypi
Expand Up @@ -106,7 +106,7 @@
'advapi32.lib',
],
'conditions': [
[ 'target_arch=="x64"', {
[ 'cc_use_gnu_ld!=1 and target_arch=="x64"', {
'sources': [
'arcfour-amd64-masm.asm',
'mpi/mpi_amd64.c',
Expand All @@ -115,7 +115,8 @@
'intel-aes-x64-masm.asm',
'intel-gcm-x64-masm.asm',
],
}, {
}],
[ 'cc_use_gnu_ld!=1 and target_arch!="x64"', {
# not x64
'sources': [
'mpi/mpi_x86_asm.c',
Expand Down

0 comments on commit 02db64a

Please sign in to comment.