Hunk 1: enable webassembly on OpenBSD Hunk 2: don't link against libatomic with clang, which uses libcompiler-rt at least on OpenBSD. The heuristic used is that llvm_version will be different from "0.0" if llvm (clang) is detected. Index: tools/v8_gypfiles/v8.gyp --- tools/v8_gypfiles/v8.gyp.orig +++ tools/v8_gypfiles/v8.gyp @@ -373,6 +373,9 @@ 'v8_libplatform', ] }], + ['v8_control_flow_integrity==1', { + 'sources': [ '<(V8_ROOT)/src/deoptimizer/deoptimizer-cfi-builtins.cc' ], + }], ], 'sources': [ '<(V8_ROOT)/src/init/setup-isolate-deserialize.cc', @@ -605,7 +608,7 @@ }], ['v8_enable_webassembly==1', { 'conditions': [ - ['OS=="linux" or OS=="mac" or OS=="ios" or OS=="freebsd"', { + ['OS=="linux" or OS=="mac" or OS=="ios" or OS=="freebsd" or OS=="openbsd"', { 'sources': [ '