From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Thu, 20 Sep 2018 17:48:05 -0700 Subject: boringssl_build_gn.patch Build BoringSSL with some extra functions that nodejs needs. Only affects the GN build; with the GYP build, nodejs is still built with OpenSSL. diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn index 6e4fc85f124ed6dd4a7ac1812686fa59c4e50cdf..2fbd44c0ac71bbd84706ef50dd0d98b2466d4295 100644 --- a/third_party/boringssl/BUILD.gn +++ b/third_party/boringssl/BUILD.gn @@ -45,6 +45,13 @@ config("no_asm_config") { all_sources = crypto_sources + ssl_sources all_headers = crypto_headers + ssl_headers +if (is_electron_build) { + # Needed to build a nodejs-compatible boringssl. + all_sources += [ + "src/decrepit/evp/evp_do_all.c", + "src/decrepit/xts/xts.c", + ] +} # Windows' assembly is built with NASM. The other platforms use the platform # assembler. Exclude Windows ARM64 because NASM targets x86 and x64 only.