2018-09-21 00:30:26 +00:00
|
|
|
From 1e77d2109d61aea5270d1026a7df5fb44e639568 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
|
|
|
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.
|
|
|
|
|
2018-09-14 05:02:16 +00:00
|
|
|
diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn
|
2018-09-14 18:03:43 +00:00
|
|
|
index d31a9f29fa9c..dea5a6403f4c 100644
|
2018-09-14 05:02:16 +00:00
|
|
|
--- a/third_party/boringssl/BUILD.gn
|
|
|
|
+++ b/third_party/boringssl/BUILD.gn
|
2018-09-14 18:03:43 +00:00
|
|
|
@@ -46,6 +46,13 @@ config("no_asm_config") {
|
2018-09-14 05:02:16 +00:00
|
|
|
|
|
|
|
all_sources = crypto_sources + ssl_sources
|
2018-09-14 18:03:43 +00:00
|
|
|
all_headers = crypto_headers + ssl_headers
|
2018-09-14 05:02:16 +00:00
|
|
|
+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 Yasm. The other platforms use the platform
|
|
|
|
# assembler.
|
2018-09-21 00:30:26 +00:00
|
|
|
--
|
|
|
|
2.17.0
|
|
|
|
|