summarylogtreecommitdiffstats
path: root/use-system-libraries-in-node.patch
diff options
context:
space:
mode:
authorJonas Heinrich2017-11-28 22:19:37 +0100
committerJonas Heinrich2017-11-28 22:19:37 +0100
commitbe249aa85007b8d48a4eab7dfe38e2404f70034c (patch)
tree56dc099158b510b348ec5f734434eea8a2f74f90 /use-system-libraries-in-node.patch
downloadaur-electron-wayland.tar.gz
first commit
Diffstat (limited to 'use-system-libraries-in-node.patch')
-rw-r--r--use-system-libraries-in-node.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/use-system-libraries-in-node.patch b/use-system-libraries-in-node.patch
new file mode 100644
index 000000000000..d9d6905626c1
--- /dev/null
+++ b/use-system-libraries-in-node.patch
@@ -0,0 +1,50 @@
+--- a/common.gypi
++++ b/common.gypi
+@@ -22,12 +22,12 @@
+ 'node_install_npm': 'false',
+ 'node_prefix': '',
+ 'node_shared': 'true',
+- 'node_shared_cares': 'false',
+- 'node_shared_http_parser': 'false',
++ 'node_shared_cares': 'true',
++ 'node_shared_http_parser': 'true',
+ 'node_shared_libuv': 'false',
+ 'node_shared_openssl': 'false',
+ 'node_shared_v8': 'true',
+- 'node_shared_zlib': 'false',
++ 'node_shared_zlib': 'true',
+ 'node_tag': '',
+ 'node_use_dtrace': 'false',
+ 'node_use_etw': 'false',
+@@ -109,18 +109,6 @@
+ 'conditions': [
+ ['OS=="linux"', {
+ 'cflags': [
+- '-Wno-parentheses-equality',
+- '-Wno-unused-function',
+- '-Wno-sometimes-uninitialized',
+- '-Wno-pointer-sign',
+- '-Wno-string-plus-int',
+- '-Wno-unused-variable',
+- '-Wno-unused-value',
+- '-Wno-deprecated-declarations',
+- '-Wno-return-type',
+- '-Wno-shift-negative-value',
+- '-Wno-format',
+- '-Wno-varargs', # https://git.io/v6Olj
+ # Required when building as shared library.
+ '-fPIC',
+ ],
+@@ -160,6 +148,12 @@
+ ],
+ }],
+ ['OS=="linux" and libchromiumcontent_component==0', {
++ 'libraries': [
++ '-lcares',
++ '-lcrypto',
++ '-lhttp_parser',
++ '-lz',
++ ],
+ # Prevent the linker from stripping symbols.
+ 'ldflags': [
+ '-Wl,--whole-archive',