Skip to content

Commit 47b12ee

Browse files
adillJohn Kleinschmidt
authored andcommitted
fix: export zlib symbols (electron#15103)
1 parent 783ee3e commit 47b12ee

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

patches/common/zlib/.patches.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
repo: src
2+
patches:
3+
-
4+
author: Andy Dill <adill@discordapp.com>
5+
file: fix-export_zlib_symbols.patch
6+
description: |
7+
Set ZLIB_DLL so that we export zlib symbols.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
2+
index 902e287f8a0a..c08a187ca968 100644
3+
--- a/third_party/zlib/BUILD.gn
4+
+++ b/third_party/zlib/BUILD.gn
5+
@@ -265,6 +265,10 @@ static_library("zlib") {
6+
defines = []
7+
deps = []
8+
9+
+ if (is_win) {
10+
+ defines += [ "ZLIB_DLL" ]
11+
+ }
12+
+
13+
if (!is_ios && (current_cpu == "x86" || current_cpu == "x64")) {
14+
deps += [ ":zlib_crc32_simd" ]
15+

0 commit comments

Comments
 (0)