Bug 1387779 - make NSS build again on BSD (add -maes and -mpclmul), r=ttaubert
authorFranziskus Kiefer <franziskuskiefer@gmail.com>
Mon, 07 Aug 2017 10:51:11 +0200
changeset 13507 7501558bfc1a0838ebe25ca21fbc188197c4dee5
parent 13505 a0a4e05dcdd5bdf405001e78c70a26eb752d05f6
child 13508 71425a467757501a6ca2192c01697819f9230cfe
push id2307
push userfranziskuskiefer@gmail.com
push dateMon, 07 Aug 2017 10:44:03 +0000
reviewersttaubert
bugs1387779
Bug 1387779 - make NSS build again on BSD (add -maes and -mpclmul), r=ttaubert
lib/freebl/freebl.gyp
--- a/lib/freebl/freebl.gyp
+++ b/lib/freebl/freebl.gyp
@@ -153,16 +153,24 @@
       'MP_API_COMPATIBLE'
     ],
     'conditions': [
       [ 'target_arch=="ia32" or target_arch=="x64"', {
         'cflags_mozilla': [
           '-mpclmul',
           '-maes',
         ],
+        'conditions': [
+          [ 'OS=="dragonfly" or OS=="freebsd" or OS=="netbsd" or OS=="openbsd"', {
+            'cflags': [
+              '-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': [
             '-mpclmul',
             '-maes',