Bug 1313000 - Fix NSS initialization with -Dtest_build=1 on Linux r=franziskus
authorTim Taubert <ttaubert@mozilla.com>
Wed, 26 Oct 2016 11:15:40 +0200
changeset 12763 f1188a6a13d94120037c71a98c13a609c57b4b8b
parent 12762 39f61839fbf49fb7d17f3da6843b7e8d9e2c3b67
child 12764 ab8881862b6c3a08fafae6cb84d12f5f3ed108a3
push id1705
push userttaubert@mozilla.com
push dateWed, 26 Oct 2016 09:26:30 +0000
reviewersfranziskus
bugs1313000
Bug 1313000 - Fix NSS initialization with -Dtest_build=1 on Linux r=franziskus Differential Revision: https://nss-dev.phacility.com/D121
lib/freebl/freebl.gyp
--- a/lib/freebl/freebl.gyp
+++ b/lib/freebl/freebl.gyp
@@ -256,17 +256,16 @@
     [ 'OS=="linux"', {
       # stub build
       'targets': [
         {
           'target_name': 'freebl3',
           'type': 'shared_library',
           'defines': [
             'FREEBL_NO_DEPEND',
-            'FREEBL_LOWHASH',
           ],
           'sources': [
             'lowhash_vector.c'
           ],
           'dependencies': [
             '<(DEPTH)/exports.gyp:nss_exports'
           ],
           'variables': {
@@ -349,21 +348,23 @@
             'defines': [
               'NSS_X86_OR_X64',
               'NSS_X86',
             ],
           }],
         ],
       }],
       [ 'OS=="linux"', {
+        'defines': [
+          'FREEBL_LOWHASH',
+        ],
         'conditions': [
           [ 'test_build==0', {
             'defines': [
               'FREEBL_NO_DEPEND',
-              'FREEBL_LOWHASH',
             ],
           }],
           [ 'target_arch=="x64"', {
             'defines': [
               'MP_IS_LITTLE_ENDIAN',
               'NSS_BEVAND_ARCFOUR',
               'MPI_AMD64',
               'MP_ASSEMBLY_MULTIPLY',